Struct monitord::networkd::InterfaceState
source · pub struct InterfaceState {
pub address_state: AddressState,
pub admin_state: AdminState,
pub carrier_state: CarrierState,
pub ipv4_address_state: AddressState,
pub ipv6_address_state: AddressState,
pub name: String,
pub network_file: String,
pub oper_state: OperState,
pub required_for_online: BoolState,
}Fields§
§address_state: AddressState§admin_state: AdminState§carrier_state: CarrierState§ipv4_address_state: AddressState§ipv6_address_state: AddressState§name: String§network_file: String§oper_state: OperState§required_for_online: BoolStateTrait 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<'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 PartialEq<InterfaceState> for InterfaceState
impl PartialEq<InterfaceState> for InterfaceState
source§fn eq(&self, other: &InterfaceState) -> bool
fn eq(&self, other: &InterfaceState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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<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
Mutably borrows from an owned value. Read more
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.