pub struct VlanId { /* private fields */ }Expand description
Non-zero VLAN ID valid per the IEEE 802.1Q standard.
Range: 1-4094
Implementations§
Trait Implementations§
Source§impl AsRawVlanId for VlanId
impl AsRawVlanId for VlanId
Source§fn as_raw_vlan_id(&self) -> RawVlanId
fn as_raw_vlan_id(&self) -> RawVlanId
Get the u16 value.
impl Copy for VlanId
impl Eq for VlanId
Source§impl From<VlanId> for MaybeVlanId
impl From<VlanId> for MaybeVlanId
Source§impl Ord for VlanId
impl Ord for VlanId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<Rhs: AsRawVlanId> PartialEq<Rhs> for VlanId
impl<Rhs: AsRawVlanId> PartialEq<Rhs> for VlanId
Source§impl<Rhs: AsRawVlanId> PartialOrd<Rhs> for VlanId
impl<Rhs: AsRawVlanId> PartialOrd<Rhs> for VlanId
Auto Trait Implementations§
impl Freeze for VlanId
impl RefUnwindSafe for VlanId
impl Send for VlanId
impl Sync for VlanId
impl Unpin for VlanId
impl UnsafeUnpin for VlanId
impl UnwindSafe for VlanId
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