Skip to main content

BridgeVlanGlobalOptions

Struct BridgeVlanGlobalOptions 

Source
#[non_exhaustive]
pub struct BridgeVlanGlobalOptions { /* private fields */ }
Expand description

Bridge-global per-VLAN options, as read back from the kernel.

Returned by Connection::get_bridge_vlan_global_options. Fields are Option because the kernel only reports options relevant to the running configuration. The struct is #[non_exhaustive] so new kernel options can be added without a breaking change.

See BridgeVlanGlobalOptionsBuilder for the not modelled attributes.

Implementations§

Source§

impl BridgeVlanGlobalOptions

Source

pub fn ifindex(&self) -> u32

Bridge interface index these options belong to.

Source

pub fn vid(&self) -> u16

VLAN ID (lower bound of the range, if a range).

Source

pub fn vid_end(&self) -> Option<u16>

Upper VLAN ID of the range, if this block covers a range.

Source

pub fn mcast_snooping(&self) -> Option<bool>

Whether per-VLAN multicast snooping is enabled.

Source

pub fn mcast_querier(&self) -> Option<bool>

Whether the per-VLAN multicast querier is enabled.

Source

pub fn mcast_igmp_version(&self) -> Option<u8>

IGMP query version.

Source

pub fn mcast_mld_version(&self) -> Option<u8>

MLD query version.

Source

pub fn mcast_last_member_count(&self) -> Option<u32>

Last-member query count.

Source

pub fn mcast_startup_query_count(&self) -> Option<u32>

Startup query count.

Source

pub fn mcast_last_member_interval(&self) -> Option<u64>

Last-member query interval (centiseconds).

Source

pub fn mcast_membership_interval(&self) -> Option<u64>

Membership interval (centiseconds).

Source

pub fn mcast_querier_interval(&self) -> Option<u64>

Querier interval (centiseconds).

Source

pub fn mcast_query_interval(&self) -> Option<u64>

Query interval (centiseconds).

Source

pub fn mcast_query_response_interval(&self) -> Option<u64>

Query response interval (centiseconds).

Source

pub fn mcast_startup_query_interval(&self) -> Option<u64>

Startup query interval (centiseconds).

Source

pub fn msti(&self) -> Option<u16>

MST instance this VLAN maps to.

Trait Implementations§

Source§

impl Clone for BridgeVlanGlobalOptions

Source§

fn clone(&self) -> BridgeVlanGlobalOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for BridgeVlanGlobalOptions

Source§

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

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

impl Default for BridgeVlanGlobalOptions

Source§

fn default() -> BridgeVlanGlobalOptions

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

impl Eq for BridgeVlanGlobalOptions

Source§

impl PartialEq for BridgeVlanGlobalOptions

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for BridgeVlanGlobalOptions

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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,

Source§

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

Source§

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

Source§

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more