Enum nmstate::InterfaceState
source · #[non_exhaustive]
pub enum InterfaceState {
Up,
Down,
Absent,
Unknown,
Ignore,
}
Expand description
The state of interface
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Up
Interface is up and running. Deserialize and serialize from/to ‘down’.
Down
For apply action, down means configuration still exist but deactivate. The virtual interface will be removed and other interface will be reverted to down state or up with IP disabled state. Deserialize and serialize from/to ‘down’.
Absent
Only for apply action to remove configuration and deactivate the interface.
Unknown
Unknown state.
Ignore
Interface is not managed by backend. For apply action, interface marked as ignore will not be changed and will not cause verification failure neither. Deserialize and serialize from/to ‘ignore’.
Trait Implementations§
source§impl Clone for InterfaceState
impl Clone for InterfaceState
source§fn clone(&self) -> InterfaceState
fn clone(&self) -> InterfaceState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InterfaceState
impl Debug for InterfaceState
source§impl Default for InterfaceState
impl Default for InterfaceState
source§impl<'de> Deserialize<'de> for InterfaceState
impl<'de> Deserialize<'de> for InterfaceState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&str> for InterfaceState
impl From<&str> for InterfaceState
source§impl From<(&IfaceState, &[IfaceFlags])> for InterfaceState
impl From<(&IfaceState, &[IfaceFlags])> for InterfaceState
source§fn from(tuple: (&IfaceState, &[IfaceFlags])) -> Self
fn from(tuple: (&IfaceState, &[IfaceFlags])) -> Self
Converts to this type from the input type.
source§impl PartialEq<InterfaceState> for InterfaceState
impl PartialEq<InterfaceState> for InterfaceState
source§fn eq(&self, other: &InterfaceState) -> bool
fn eq(&self, other: &InterfaceState) -> bool
source§impl Serialize for InterfaceState
impl Serialize for InterfaceState
impl Eq for InterfaceState
impl StructuralEq for InterfaceState
impl StructuralPartialEq for InterfaceState
Auto Trait Implementations§
impl RefUnwindSafe for InterfaceState
impl Send for InterfaceState
impl Sync for InterfaceState
impl Unpin for InterfaceState
impl UnwindSafe for InterfaceState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.