Struct nispor::BridgeInfo

source ·
#[non_exhaustive]
pub struct BridgeInfo {
Show 45 fields pub ports: Vec<String>, pub ageing_time: Option<u32>, pub bridge_id: Option<String>, pub group_fwd_mask: Option<u16>, pub root_id: Option<String>, pub root_port: Option<u16>, pub root_path_cost: Option<u32>, pub topology_change: Option<bool>, pub topology_change_detected: Option<bool>, pub tcn_timer: Option<u64>, pub topology_change_timer: Option<u64>, pub gc_timer: Option<u64>, pub group_addr: Option<String>, pub nf_call_iptables: Option<bool>, pub nf_call_ip6tables: Option<bool>, pub nf_call_arptables: Option<bool>, pub vlan_filtering: Option<bool>, pub vlan_protocol: Option<BridgeVlanProtocol>, pub default_pvid: Option<u16>, pub vlan_stats_enabled: Option<bool>, pub vlan_stats_per_host: Option<bool>, pub stp_state: Option<BridgeStpState>, pub hello_time: Option<u32>, pub hello_timer: Option<u64>, pub forward_delay: Option<u32>, pub max_age: Option<u32>, pub priority: Option<u16>, pub multi_bool_opt: Option<u64>, pub multicast_router: Option<BridgePortMulticastRouterType>, pub multicast_snooping: Option<bool>, pub multicast_query_use_ifaddr: Option<bool>, pub multicast_querier: Option<bool>, pub multicast_stats_enabled: Option<bool>, pub multicast_hash_elasticity: Option<u32>, pub multicast_hash_max: Option<u32>, pub multicast_last_member_count: Option<u32>, pub multicast_last_member_interval: Option<u64>, pub multicast_startup_query_count: Option<u32>, pub multicast_membership_interval: Option<u64>, pub multicast_querier_interval: Option<u64>, pub multicast_query_interval: Option<u64>, pub multicast_query_response_interval: Option<u64>, pub multicast_startup_query_interval: Option<u64>, pub multicast_igmp_version: Option<u8>, pub multicast_mld_version: Option<u8>,
}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§ports: Vec<String>§ageing_time: Option<u32>§bridge_id: Option<String>§group_fwd_mask: Option<u16>§root_id: Option<String>§root_port: Option<u16>§root_path_cost: Option<u32>§topology_change: Option<bool>§topology_change_detected: Option<bool>§tcn_timer: Option<u64>§topology_change_timer: Option<u64>§gc_timer: Option<u64>§group_addr: Option<String>§nf_call_iptables: Option<bool>§nf_call_ip6tables: Option<bool>§nf_call_arptables: Option<bool>§vlan_filtering: Option<bool>§vlan_protocol: Option<BridgeVlanProtocol>§default_pvid: Option<u16>§vlan_stats_enabled: Option<bool>§vlan_stats_per_host: Option<bool>§stp_state: Option<BridgeStpState>§hello_time: Option<u32>§hello_timer: Option<u64>§forward_delay: Option<u32>§max_age: Option<u32>§priority: Option<u16>§multi_bool_opt: Option<u64>§multicast_router: Option<BridgePortMulticastRouterType>§multicast_snooping: Option<bool>§multicast_query_use_ifaddr: Option<bool>§multicast_querier: Option<bool>§multicast_stats_enabled: Option<bool>§multicast_hash_elasticity: Option<u32>§multicast_hash_max: Option<u32>§multicast_last_member_count: Option<u32>§multicast_last_member_interval: Option<u64>§multicast_startup_query_count: Option<u32>§multicast_membership_interval: Option<u64>§multicast_querier_interval: Option<u64>§multicast_query_interval: Option<u64>§multicast_query_response_interval: Option<u64>§multicast_startup_query_interval: Option<u64>§multicast_igmp_version: Option<u8>§multicast_mld_version: Option<u8>

Trait Implementations§

source§

impl Clone for BridgeInfo

source§

fn clone(&self) -> BridgeInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BridgeInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BridgeInfo

source§

fn default() -> BridgeInfo

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for BridgeInfo

source§

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 BridgeInfo

source§

fn eq(&self, other: &BridgeInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BridgeInfo

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for BridgeInfo

source§

impl StructuralPartialEq for BridgeInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,