pub struct ExtendedCommunitiesPathAttribute {
pub extended_communities: Vec<ExtendedCommunity>,
}Expand description
Extended Communities as defined in https://www.rfc-editor.org/rfc/rfc4360.html.
Fields§
§extended_communities: Vec<ExtendedCommunity>Implementations§
Source§impl ExtendedCommunitiesPathAttribute
impl ExtendedCommunitiesPathAttribute
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, ctx: &ParserContext) -> Result<u16>
Trait Implementations§
Source§impl Clone for ExtendedCommunitiesPathAttribute
impl Clone for ExtendedCommunitiesPathAttribute
Source§fn clone(&self) -> ExtendedCommunitiesPathAttribute
fn clone(&self) -> ExtendedCommunitiesPathAttribute
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<'de> Deserialize<'de> for ExtendedCommunitiesPathAttribute
impl<'de> Deserialize<'de> for ExtendedCommunitiesPathAttribute
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 ExtendedCommunitiesPathAttribute
Source§impl PartialEq for ExtendedCommunitiesPathAttribute
impl PartialEq for ExtendedCommunitiesPathAttribute
Source§fn eq(&self, other: &ExtendedCommunitiesPathAttribute) -> bool
fn eq(&self, other: &ExtendedCommunitiesPathAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtendedCommunitiesPathAttribute
Auto Trait Implementations§
impl Freeze for ExtendedCommunitiesPathAttribute
impl RefUnwindSafe for ExtendedCommunitiesPathAttribute
impl Send for ExtendedCommunitiesPathAttribute
impl Sync for ExtendedCommunitiesPathAttribute
impl Unpin for ExtendedCommunitiesPathAttribute
impl UnsafeUnpin for ExtendedCommunitiesPathAttribute
impl UnwindSafe for ExtendedCommunitiesPathAttribute
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