pub struct LargeCommunity {
pub global_admin: u32,
pub data_1: u32,
pub data_2: u32,
}Fields§
§global_admin: u32§data_1: u32§data_2: u32Implementations§
Source§impl LargeCommunity
impl LargeCommunity
pub fn from_wire<'a>( _: &ParserContext, buf: &'a [u8], ) -> IResult<&'a [u8], Self, BgpParserError<&'a [u8]>>
pub fn to_wire(&self, _: &ParserContext, out: &mut BytesMut) -> Result<()>
pub fn wire_len(&self, _: &ParserContext) -> Result<u16>
Trait Implementations§
Source§impl Clone for LargeCommunity
impl Clone for LargeCommunity
Source§fn clone(&self) -> LargeCommunity
fn clone(&self) -> LargeCommunity
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 LargeCommunity
impl Debug for LargeCommunity
Source§impl<'de> Deserialize<'de> for LargeCommunity
impl<'de> Deserialize<'de> for LargeCommunity
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 LargeCommunity
Source§impl PartialEq for LargeCommunity
impl PartialEq for LargeCommunity
Source§fn eq(&self, other: &LargeCommunity) -> bool
fn eq(&self, other: &LargeCommunity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LargeCommunity
impl Serialize for LargeCommunity
impl StructuralPartialEq for LargeCommunity
Auto Trait Implementations§
impl Freeze for LargeCommunity
impl RefUnwindSafe for LargeCommunity
impl Send for LargeCommunity
impl Sync for LargeCommunity
impl Unpin for LargeCommunity
impl UnsafeUnpin for LargeCommunity
impl UnwindSafe for LargeCommunity
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