Enum rtnetlink::LinkState [−][src]
pub enum LinkState { Unknown, NotPresent, Down, LowerLayerDown, Testing, Dormant, Up, Other(u8), }
Variants
Unknown
Status can't be determined
NotPresent
Some component is missing
Down
Down
LowerLayerDown
Down due to state of lower layer
Testing
In some test mode
Dormant
Not up but pending an external event
Up
Up, ready to send packets
Other(u8)
Unrecognized value. This should go away when TryFrom
is stable in Rust
Trait Implementations
impl Debug for LinkState
[src]
impl Debug for LinkState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for LinkState
[src]
impl Clone for LinkState
fn clone(&self) -> LinkState
[src]
fn clone(&self) -> LinkState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for LinkState
[src]
impl Copy for LinkState
impl Eq for LinkState
[src]
impl Eq for LinkState
impl PartialEq for LinkState
[src]
impl PartialEq for LinkState
fn eq(&self, other: &LinkState) -> bool
[src]
fn eq(&self, other: &LinkState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &LinkState) -> bool
[src]
fn ne(&self, other: &LinkState) -> bool
This method tests for !=
.
impl From<u8> for LinkState
[src]
impl From<u8> for LinkState
impl From<LinkState> for u8
[src]
impl From<LinkState> for u8