#[repr(u8)]pub enum OriginPathAttribute {
IGP = 0,
EGP = 1,
INCOMPLETE = 2,
}Expand description
Origin path attribute is a mandatory attribute defined in RFC4271.
Variants§
Implementations§
Source§impl OriginPathAttribute
impl OriginPathAttribute
pub fn from_wire<'a>( _: &ParserContext, buf: &'a [u8], ) -> IResult<&'a [u8], Self, BgpParserError<&'a [u8]>>
pub fn wire_len(&self, _ctx: &ParserContext) -> Result<u16>
pub fn to_wire(&self, _ctx: &ParserContext, out: &mut BytesMut) -> Result<()>
Trait Implementations§
Source§impl Clone for OriginPathAttribute
impl Clone for OriginPathAttribute
Source§fn clone(&self) -> OriginPathAttribute
fn clone(&self) -> OriginPathAttribute
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 moreimpl Copy for OriginPathAttribute
Source§impl Debug for OriginPathAttribute
impl Debug for OriginPathAttribute
Source§impl<'de> Deserialize<'de> for OriginPathAttribute
impl<'de> Deserialize<'de> for OriginPathAttribute
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 OriginPathAttribute
Source§impl PartialEq for OriginPathAttribute
impl PartialEq for OriginPathAttribute
Source§fn eq(&self, other: &OriginPathAttribute) -> bool
fn eq(&self, other: &OriginPathAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OriginPathAttribute
impl Serialize for OriginPathAttribute
impl StructuralPartialEq for OriginPathAttribute
Auto Trait Implementations§
impl Freeze for OriginPathAttribute
impl RefUnwindSafe for OriginPathAttribute
impl Send for OriginPathAttribute
impl Sync for OriginPathAttribute
impl Unpin for OriginPathAttribute
impl UnsafeUnpin for OriginPathAttribute
impl UnwindSafe for OriginPathAttribute
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