pub struct AggregatorPathAttribute {
pub asn: u32,
pub ip: Ipv4Addr,
}Fields§
§asn: u32§ip: Ipv4AddrImplementations§
Source§impl AggregatorPathAttribute
impl AggregatorPathAttribute
pub fn from_wire<'a>( ctx: &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 AggregatorPathAttribute
impl Clone for AggregatorPathAttribute
Source§fn clone(&self) -> AggregatorPathAttribute
fn clone(&self) -> AggregatorPathAttribute
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 AggregatorPathAttribute
impl Debug for AggregatorPathAttribute
Source§impl<'de> Deserialize<'de> for AggregatorPathAttribute
impl<'de> Deserialize<'de> for AggregatorPathAttribute
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 AggregatorPathAttribute
Source§impl PartialEq for AggregatorPathAttribute
impl PartialEq for AggregatorPathAttribute
Source§fn eq(&self, other: &AggregatorPathAttribute) -> bool
fn eq(&self, other: &AggregatorPathAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AggregatorPathAttribute
impl Serialize for AggregatorPathAttribute
impl StructuralPartialEq for AggregatorPathAttribute
Auto Trait Implementations§
impl Freeze for AggregatorPathAttribute
impl RefUnwindSafe for AggregatorPathAttribute
impl Send for AggregatorPathAttribute
impl Sync for AggregatorPathAttribute
impl Unpin for AggregatorPathAttribute
impl UnsafeUnpin for AggregatorPathAttribute
impl UnwindSafe for AggregatorPathAttribute
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