Enum bgpkit_parser::models::NextHopAddress
source · pub enum NextHopAddress {
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
Ipv6LinkLocal(Ipv6Addr, Ipv6Addr),
}
Expand description
enum that represents the type of the next hop address.
NextHopAddress is used when parsing for next hops in Nlri.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for NextHopAddress
impl Clone for NextHopAddress
source§fn clone(&self) -> NextHopAddress
fn clone(&self) -> NextHopAddress
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 NextHopAddress
impl Debug for NextHopAddress
source§impl Display for NextHopAddress
impl Display for NextHopAddress
source§impl From<IpAddr> for NextHopAddress
impl From<IpAddr> for NextHopAddress
source§impl Hash for NextHopAddress
impl Hash for NextHopAddress
source§impl PartialEq for NextHopAddress
impl PartialEq for NextHopAddress
source§fn eq(&self, other: &NextHopAddress) -> bool
fn eq(&self, other: &NextHopAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NextHopAddress
impl Eq for NextHopAddress
impl StructuralPartialEq for NextHopAddress
Auto Trait Implementations§
impl RefUnwindSafe for NextHopAddress
impl Send for NextHopAddress
impl Sync for NextHopAddress
impl Unpin for NextHopAddress
impl UnwindSafe for NextHopAddress
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.