pub struct MpReachNlriPathAttribute {
pub afi: AddressFamilyId,
pub safi: SubsequentAfi,
pub next_hop: NlriNextHop,
pub prefixes: Vec<IpPrefix>,
}Fields§
§afi: AddressFamilyId§safi: SubsequentAfi§next_hop: NlriNextHopNext hop address (either IPv4 or IPv6 for now).
prefixes: Vec<IpPrefix>Implementations§
Source§impl MpReachNlriPathAttribute
impl MpReachNlriPathAttribute
pub fn from_wire<'a>( _: &ParserContext, buf: &'a [u8], ) -> IResult<&'a [u8], Self, BgpParserError<&'a [u8]>>
pub fn to_wire(&self, ctx: &ParserContext, out: &mut BytesMut) -> Result<()>
pub fn wire_len(&self, _: &ParserContext) -> Result<u16>
Trait Implementations§
Source§impl Clone for MpReachNlriPathAttribute
impl Clone for MpReachNlriPathAttribute
Source§fn clone(&self) -> MpReachNlriPathAttribute
fn clone(&self) -> MpReachNlriPathAttribute
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 MpReachNlriPathAttribute
impl Debug for MpReachNlriPathAttribute
Source§impl<'de> Deserialize<'de> for MpReachNlriPathAttribute
impl<'de> Deserialize<'de> for MpReachNlriPathAttribute
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 MpReachNlriPathAttribute
Source§impl PartialEq for MpReachNlriPathAttribute
impl PartialEq for MpReachNlriPathAttribute
Source§fn eq(&self, other: &MpReachNlriPathAttribute) -> bool
fn eq(&self, other: &MpReachNlriPathAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MpReachNlriPathAttribute
impl Serialize for MpReachNlriPathAttribute
impl StructuralPartialEq for MpReachNlriPathAttribute
Auto Trait Implementations§
impl Freeze for MpReachNlriPathAttribute
impl RefUnwindSafe for MpReachNlriPathAttribute
impl Send for MpReachNlriPathAttribute
impl Sync for MpReachNlriPathAttribute
impl Unpin for MpReachNlriPathAttribute
impl UnsafeUnpin for MpReachNlriPathAttribute
impl UnwindSafe for MpReachNlriPathAttribute
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