pub struct LocalPrefPathAttribute(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl LocalPrefPathAttribute
impl LocalPrefPathAttribute
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 LocalPrefPathAttribute
impl Clone for LocalPrefPathAttribute
Source§fn clone(&self) -> LocalPrefPathAttribute
fn clone(&self) -> LocalPrefPathAttribute
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 LocalPrefPathAttribute
impl Debug for LocalPrefPathAttribute
Source§impl<'de> Deserialize<'de> for LocalPrefPathAttribute
impl<'de> Deserialize<'de> for LocalPrefPathAttribute
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 LocalPrefPathAttribute
Source§impl PartialEq for LocalPrefPathAttribute
impl PartialEq for LocalPrefPathAttribute
Source§fn eq(&self, other: &LocalPrefPathAttribute) -> bool
fn eq(&self, other: &LocalPrefPathAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocalPrefPathAttribute
impl Serialize for LocalPrefPathAttribute
impl StructuralPartialEq for LocalPrefPathAttribute
Auto Trait Implementations§
impl Freeze for LocalPrefPathAttribute
impl RefUnwindSafe for LocalPrefPathAttribute
impl Send for LocalPrefPathAttribute
impl Sync for LocalPrefPathAttribute
impl Unpin for LocalPrefPathAttribute
impl UnsafeUnpin for LocalPrefPathAttribute
impl UnwindSafe for LocalPrefPathAttribute
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