#[repr(transparent)]pub struct NetworkState(pub u32);Expand description
The state of a network interface.
Tuple Fields§
§0: u32Implementations§
Source§impl NetworkState
impl NetworkState
Sourcepub const STOPPED: NetworkState
pub const STOPPED: NetworkState
The interface has been stopped
Sourcepub const STARTED: NetworkState
pub const STARTED: NetworkState
The interface has been started
Sourcepub const INITIALIZED: NetworkState
pub const INITIALIZED: NetworkState
The interface has been initialized
Sourcepub const MAX_STATE: NetworkState
pub const MAX_STATE: NetworkState
No state can have a number higher than this
Trait Implementations§
Source§impl Clone for NetworkState
impl Clone for NetworkState
Source§fn clone(&self) -> NetworkState
fn clone(&self) -> NetworkState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NetworkState
Source§impl Debug for NetworkState
impl Debug for NetworkState
impl Eq for NetworkState
Source§impl Hash for NetworkState
impl Hash for NetworkState
Source§impl Ord for NetworkState
impl Ord for NetworkState
Source§fn cmp(&self, other: &NetworkState) -> Ordering
fn cmp(&self, other: &NetworkState) -> Ordering
1.21.0 (const: unstable)§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NetworkState
impl PartialEq for NetworkState
Source§impl PartialOrd for NetworkState
impl PartialOrd for NetworkState
impl StructuralPartialEq for NetworkState
Auto Trait Implementations§
impl Freeze for NetworkState
impl RefUnwindSafe for NetworkState
impl Send for NetworkState
impl Sync for NetworkState
impl Unpin for NetworkState
impl UnsafeUnpin for NetworkState
impl UnwindSafe for NetworkState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)