#[non_exhaustive]pub enum RouteLwEnCapType {
None,
Mpls,
Ip,
Ila,
Ip6,
Seg6,
Bpf,
Seg6Local,
Rpl,
Ioam6,
Xfrm,
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 RouteLwEnCapType
impl Clone for RouteLwEnCapType
source§fn clone(&self) -> RouteLwEnCapType
fn clone(&self) -> RouteLwEnCapType
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 RouteLwEnCapType
impl Debug for RouteLwEnCapType
source§impl Default for RouteLwEnCapType
impl Default for RouteLwEnCapType
source§fn default() -> RouteLwEnCapType
fn default() -> RouteLwEnCapType
Returns the “default value” for a type. Read more
source§impl Display for RouteLwEnCapType
impl Display for RouteLwEnCapType
source§impl Emitable for RouteLwEnCapType
impl Emitable for RouteLwEnCapType
source§impl From<RouteLwEnCapType> for u16
impl From<RouteLwEnCapType> for u16
source§fn from(v: RouteLwEnCapType) -> u16
fn from(v: RouteLwEnCapType) -> u16
Converts to this type from the input type.
source§impl From<u16> for RouteLwEnCapType
impl From<u16> for RouteLwEnCapType
source§impl<'a, T> ParseableParametrized<NlaBuffer<&'a T>, RouteLwEnCapType> for RouteLwTunnelEncap
impl<'a, T> ParseableParametrized<NlaBuffer<&'a T>, RouteLwEnCapType> for RouteLwTunnelEncap
source§fn parse_with_param(
buf: &NlaBuffer<&'a T>,
kind: RouteLwEnCapType
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &NlaBuffer<&'a T>, kind: RouteLwEnCapType ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for RouteLwEnCapType
impl PartialEq for RouteLwEnCapType
source§fn eq(&self, other: &RouteLwEnCapType) -> bool
fn eq(&self, other: &RouteLwEnCapType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RouteLwEnCapType
impl Eq for RouteLwEnCapType
impl StructuralEq for RouteLwEnCapType
impl StructuralPartialEq for RouteLwEnCapType
Auto Trait Implementations§
impl RefUnwindSafe for RouteLwEnCapType
impl Send for RouteLwEnCapType
impl Sync for RouteLwEnCapType
impl Unpin for RouteLwEnCapType
impl UnwindSafe for RouteLwEnCapType
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