Struct nispor::BridgePortInfo

source ·
#[non_exhaustive]
pub struct BridgePortInfo {
Show 42 fields pub stp_state: BridgePortStpState, pub stp_priority: u16, pub stp_path_cost: u32, pub hairpin_mode: bool, pub bpdu_guard: bool, pub root_block: bool, pub multicast_fast_leave: bool, pub learning: bool, pub unicast_flood: bool, pub proxyarp: bool, pub proxyarp_wifi: bool, pub designated_root: String, pub designated_bridge: String, pub designated_port: u16, pub designated_cost: u16, pub port_id: String, pub port_no: String, pub change_ack: bool, pub config_pending: bool, pub message_age_timer: u64, pub forward_delay_timer: u64, pub hold_timer: u64, pub multicast_router: BridgePortMulticastRouterType, pub multicast_flood: bool, pub multicast_to_unicast: bool, pub vlan_tunnel: bool, pub broadcast_flood: bool, pub group_fwd_mask: u16, pub neigh_suppress: bool, pub isolated: bool, pub backup_port: String, pub mrp_ring_open: Option<bool>, pub mrp_in_open: Option<bool>, pub mcast_eht_hosts_limit: Option<u32>, pub mcast_eht_hosts_cnt: Option<u32>, pub vlans: Option<Vec<BridgeVlanEntry>>, pub locked: Option<bool>, pub mac_authentication_bypass: Option<bool>, pub multicast_n_groups: Option<u32>, pub multicast_max_groups: Option<u32>, pub neigh_vlan_supress: Option<bool>, pub backup_nexthop_id: Option<u32>,
}

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.
§stp_state: BridgePortStpState§stp_priority: u16§stp_path_cost: u32§hairpin_mode: bool§bpdu_guard: bool§root_block: bool§multicast_fast_leave: bool§learning: bool§unicast_flood: bool§proxyarp: bool§proxyarp_wifi: bool§designated_root: String§designated_bridge: String§designated_port: u16§designated_cost: u16§port_id: String§port_no: String§change_ack: bool§config_pending: bool§message_age_timer: u64§forward_delay_timer: u64§hold_timer: u64§multicast_router: BridgePortMulticastRouterType§multicast_flood: bool§multicast_to_unicast: bool§vlan_tunnel: bool§broadcast_flood: bool§group_fwd_mask: u16§neigh_suppress: bool§isolated: bool§backup_port: String§mrp_ring_open: Option<bool>§mrp_in_open: Option<bool>§mcast_eht_hosts_limit: Option<u32>§mcast_eht_hosts_cnt: Option<u32>§vlans: Option<Vec<BridgeVlanEntry>>§locked: Option<bool>§mac_authentication_bypass: Option<bool>§multicast_n_groups: Option<u32>§multicast_max_groups: Option<u32>§neigh_vlan_supress: Option<bool>§backup_nexthop_id: Option<u32>

Trait Implementations§

source§

impl Clone for BridgePortInfo

source§

fn clone(&self) -> BridgePortInfo

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 BridgePortInfo

source§

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

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

impl Default for BridgePortInfo

source§

fn default() -> BridgePortInfo

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

impl<'de> Deserialize<'de> for BridgePortInfo

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 BridgePortInfo

source§

fn eq(&self, other: &BridgePortInfo) -> 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 BridgePortInfo

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 BridgePortInfo

source§

impl StructuralPartialEq for BridgePortInfo

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>,