Enum netlink_packet_route::route::RouteAddress
source · #[non_exhaustive]pub enum RouteAddress {
Inet(Ipv4Addr),
Inet6(Ipv6Addr),
Mpls(MplsLabel),
Other(Vec<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 RouteAddress
impl Clone for RouteAddress
source§fn clone(&self) -> RouteAddress
fn clone(&self) -> RouteAddress
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 RouteAddress
impl Debug for RouteAddress
source§impl Emitable for RouteAddress
impl Emitable for RouteAddress
source§impl From<Ipv4Addr> for RouteAddress
impl From<Ipv4Addr> for RouteAddress
source§impl From<Ipv6Addr> for RouteAddress
impl From<Ipv6Addr> for RouteAddress
source§impl From<MplsLabel> for RouteAddress
impl From<MplsLabel> for RouteAddress
source§impl PartialEq for RouteAddress
impl PartialEq for RouteAddress
source§fn eq(&self, other: &RouteAddress) -> bool
fn eq(&self, other: &RouteAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RouteAddress
impl StructuralEq for RouteAddress
impl StructuralPartialEq for RouteAddress
Auto Trait Implementations§
impl RefUnwindSafe for RouteAddress
impl Send for RouteAddress
impl Sync for RouteAddress
impl Unpin for RouteAddress
impl UnwindSafe for RouteAddress
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