[−][src]Enum bgp_rs::update::attributes::PathAttribute
Represents a path attribute that described meta data of a specific route.
Variants
ORIGIN(Origin)
Indicates how an UPDATE message has been generated. Defined in RFC4271.
AS_PATH(ASPath)
Represents the path through which an UPDATE message traveled. Defined in RFC4271.
NEXT_HOP(IpAddr)
Indicates IP address that is to be used as a next hop. Defined in RFC4271.
MULTI_EXIT_DISC(u32)
Used to discriminate between multiple exit or entry points. Defined in RFC4271.
LOCAL_PREF(u32)
Represents the degree of preference for internal routes. Defined in RFC4271.
May be used when a route has been aggregated. Defined in RFC4271.
May be used to add information on who aggregated this route. Defined in RFC4271.
Enables users to add extra information. Defined in RFC1997.
ORIGINATOR_ID(u32)
Defined in RFC4456.
Defined in RFC4456. Holds a list of CLUSTER_IDs.
Defined in RFC6938. (deprecated) Tuple represents the (ASN specifying the preference, DPA value).
Defined in RFC6938. (deprecated)
Defined in RFC6938. (deprecated)
MP_REACH_NLRI(MPReachNLRI)
Multi-protocol extensions. Defined in RFC4760.
MP_UNREACH_NLRI(MPUnreachNLRI)
Multi-protocol extensions. Defined in RFC4760.
Defined in RFC4360.
AS4_PATH(ASPath)
AS_PATH using 32-bit ASN. Defined in RFC6793.
AGGREGATOR using 32-bit ASN. Defined in RFC6793.
SAFI Specific Attribute (deprecated).
CONNECTOR(Ipv4Addr)
Defined in RFC6037. (deprecated)
Defined here. (deprecated)
Defined in RFC6514. Specifies the (Flags, Tunnel Type + MPLS Label, Tunnel Identifier) fields.
Defined in RFC5512. Specifies the (Tunnel Type, Value) fields.
Defined in RFC5543.
Defined in RFC5701. Specifies the (Transitive, Sub-type, Global Administrator, Local Administrator) fields.
Defined in RFC7311. Specifies the (Type, Value) fields.
Defined in RFC6514.
Defined in RFC6790.
Defined in RFC7752. (deprecated)
Defined in RFC8092.
Defined in RFC8205.
Defined here.
ATTR_SET((u32, Vec<PathAttribute>))
Defined in RFC6368.
Implementations
impl PathAttribute
[src]
pub fn parse(
stream: &mut impl Read,
capabilities: &Capabilities
) -> Result<PathAttribute, Error>
[src]
stream: &mut impl Read,
capabilities: &Capabilities
) -> Result<PathAttribute, Error>
Reads a Path Attribute from an object that implements Read.
Panics
This function does not panic.
Errors
Any IO error will be returned while reading from the stream. Behavior is undefined when an ill-formatted stream is provided.
Safety
This function does not make use of unsafe code.
pub fn id(&self) -> Identifier
[src]
Retrieve the identifier belonging to this PathAttribute
pub fn encode(&self, buf: &mut impl Write) -> Result<(), Error>
[src]
Encode path attribute to bytes
Trait Implementations
impl Clone for PathAttribute
[src]
fn clone(&self) -> PathAttribute
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PathAttribute
[src]
Auto Trait Implementations
impl RefUnwindSafe for PathAttribute
impl Send for PathAttribute
impl Sync for PathAttribute
impl Unpin for PathAttribute
impl UnwindSafe for PathAttribute
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,