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
Up
Interface is up and running. Deserialize and serialize from/to ‘up’.
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. When desired controller listed currently ignored interfaces as its port, nmstate will automatically convert these ignored interfaces from ‘state: ignore’ to ‘state: up’ only when:
- This ignored port is not mentioned in desire state.
- This ignored port is listed as port of a desired controller.
- Controller interface is new or does not contain ignored interfaces currently.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
source§impl From<&str> for InterfaceState
impl From<&str> for InterfaceState
source§impl From<(&IfaceState, &[IfaceFlag])> for InterfaceState
impl From<(&IfaceState, &[IfaceFlag])> for InterfaceState
source§fn from(tuple: (&IfaceState, &[IfaceFlag])) -> Self
fn from(tuple: (&IfaceState, &[IfaceFlag])) -> Self
source§impl PartialEq for InterfaceState
impl PartialEq for InterfaceState
source§fn eq(&self, other: &InterfaceState) -> bool
fn eq(&self, other: &InterfaceState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InterfaceState
impl Serialize for InterfaceState
impl Copy for InterfaceState
impl Eq for InterfaceState
impl StructuralPartialEq for InterfaceState
Auto Trait Implementations§
impl Freeze for InterfaceState
impl RefUnwindSafe for InterfaceState
impl Send for InterfaceState
impl Sync for InterfaceState
impl Unpin for InterfaceState
impl UnwindSafe for InterfaceState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.