Enum netlink_packet_route::link::HsrProtocol
source · #[non_exhaustive]#[repr(u8)]pub enum HsrProtocol {
Hsr = 0,
Prp = 1,
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 HsrProtocol
impl Clone for HsrProtocol
source§fn clone(&self) -> HsrProtocol
fn clone(&self) -> HsrProtocol
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 HsrProtocol
impl Debug for HsrProtocol
source§impl Display for HsrProtocol
impl Display for HsrProtocol
source§impl From<HsrProtocol> for u8
impl From<HsrProtocol> for u8
source§fn from(d: HsrProtocol) -> Self
fn from(d: HsrProtocol) -> Self
Converts to this type from the input type.
source§impl From<u8> for HsrProtocol
impl From<u8> for HsrProtocol
source§impl PartialEq for HsrProtocol
impl PartialEq for HsrProtocol
impl Copy for HsrProtocol
impl Eq for HsrProtocol
impl StructuralPartialEq for HsrProtocol
Auto Trait Implementations§
impl Freeze for HsrProtocol
impl RefUnwindSafe for HsrProtocol
impl Send for HsrProtocol
impl Sync for HsrProtocol
impl Unpin for HsrProtocol
impl UnwindSafe for HsrProtocol
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)