pub struct ExtendedNextHop {
pub afi: AddressFamilyId,
pub safi: SubsequentAfi,
pub nh_afi: AddressFamilyId,
}Expand description
ExtendedNextHop allows for the nexthop to be for a different address family
than the one being used to advertise prefixes for. E.g. it allows for sending
IPv4 prefixes with an IPv6 nexthop.
Fields§
§afi: AddressFamilyIdThe Address Family to update the nexthop format for.
safi: SubsequentAfiThe Subsequent Address Family to update the nexthop format for.
nh_afi: AddressFamilyIdThe Address Family that nexthops will be encoded as.
Trait Implementations§
Source§impl Clone for ExtendedNextHop
impl Clone for ExtendedNextHop
Source§fn clone(&self) -> ExtendedNextHop
fn clone(&self) -> ExtendedNextHop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtendedNextHop
impl Debug for ExtendedNextHop
Source§impl<'de> Deserialize<'de> for ExtendedNextHop
impl<'de> Deserialize<'de> for ExtendedNextHop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExtendedNextHop
Source§impl PartialEq for ExtendedNextHop
impl PartialEq for ExtendedNextHop
Source§fn eq(&self, other: &ExtendedNextHop) -> bool
fn eq(&self, other: &ExtendedNextHop) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtendedNextHop
impl Serialize for ExtendedNextHop
impl StructuralPartialEq for ExtendedNextHop
Auto Trait Implementations§
impl Freeze for ExtendedNextHop
impl RefUnwindSafe for ExtendedNextHop
impl Send for ExtendedNextHop
impl Sync for ExtendedNextHop
impl Unpin for ExtendedNextHop
impl UnsafeUnpin for ExtendedNextHop
impl UnwindSafe for ExtendedNextHop
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