#[non_exhaustive]#[repr(u16)]pub enum TunnelEncapType {
None,
Fou,
Gue,
Mpls,
Other(u16),
}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 TunnelEncapType
impl Clone for TunnelEncapType
Source§fn clone(&self) -> TunnelEncapType
fn clone(&self) -> TunnelEncapType
Returns a duplicate 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 TunnelEncapType
impl Debug for TunnelEncapType
Source§impl Display for TunnelEncapType
impl Display for TunnelEncapType
Source§impl From<TunnelEncapType> for u16
impl From<TunnelEncapType> for u16
Source§fn from(d: TunnelEncapType) -> Self
fn from(d: TunnelEncapType) -> Self
Converts to this type from the input type.
Source§impl From<u16> for TunnelEncapType
impl From<u16> for TunnelEncapType
Source§impl PartialEq for TunnelEncapType
impl PartialEq for TunnelEncapType
impl Copy for TunnelEncapType
impl Eq for TunnelEncapType
impl StructuralPartialEq for TunnelEncapType
Auto Trait Implementations§
impl Freeze for TunnelEncapType
impl RefUnwindSafe for TunnelEncapType
impl Send for TunnelEncapType
impl Sync for TunnelEncapType
impl Unpin for TunnelEncapType
impl UnwindSafe for TunnelEncapType
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