#[non_exhaustive]pub enum BridgePortState {
Disabled,
Listening,
Learning,
Forwarding,
Blocking,
Other(u8),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for BridgePortState
impl Clone for BridgePortState
source§fn clone(&self) -> BridgePortState
fn clone(&self) -> BridgePortState
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 BridgePortState
impl Debug for BridgePortState
source§impl From<BridgePortState> for u8
impl From<BridgePortState> for u8
source§fn from(value: BridgePortState) -> Self
fn from(value: BridgePortState) -> Self
Converts to this type from the input type.
source§impl From<u8> for BridgePortState
impl From<u8> for BridgePortState
source§impl PartialEq for BridgePortState
impl PartialEq for BridgePortState
source§fn eq(&self, other: &BridgePortState) -> bool
fn eq(&self, other: &BridgePortState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BridgePortState
impl Eq for BridgePortState
impl StructuralPartialEq for BridgePortState
Auto Trait Implementations§
impl RefUnwindSafe for BridgePortState
impl Send for BridgePortState
impl Sync for BridgePortState
impl Unpin for BridgePortState
impl UnwindSafe for BridgePortState
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