pub struct NetworkdState {
pub interfaces_state: Vec<InterfaceState>,
pub managed_interfaces: u64,
}
Expand description
Main networkd structure with per interface state and a count of managed interfaces
Fields§
§interfaces_state: Vec<InterfaceState>
§managed_interfaces: u64
Trait Implementations§
Source§impl Clone for NetworkdState
impl Clone for NetworkdState
Source§fn clone(&self) -> NetworkdState
fn clone(&self) -> NetworkdState
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 NetworkdState
impl Debug for NetworkdState
Source§impl Default for NetworkdState
impl Default for NetworkdState
Source§fn default() -> NetworkdState
fn default() -> NetworkdState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkdState
impl<'de> Deserialize<'de> for NetworkdState
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 for NetworkdState
impl PartialEq for NetworkdState
Source§impl Serialize for NetworkdState
impl Serialize for NetworkdState
impl Eq for NetworkdState
impl StructuralPartialEq for NetworkdState
Auto Trait Implementations§
impl Freeze for NetworkdState
impl RefUnwindSafe for NetworkdState
impl Send for NetworkdState
impl Sync for NetworkdState
impl Unpin for NetworkdState
impl UnwindSafe for NetworkdState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.