#[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.
Implementations§
Source§impl RouteAddress
impl RouteAddress
pub fn parse( address_family: AddressFamily, payload: &[u8], ) -> Result<Self, DecodeError>
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<IpAddr> for RouteAddress
impl From<IpAddr> 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
impl Eq for RouteAddress
impl StructuralPartialEq for RouteAddress
Auto Trait Implementations§
impl Freeze for RouteAddress
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
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
)