Enum bgp_models::bgp::attributes::AttributeValue
source · pub enum AttributeValue {
Show 17 variants
Origin(Origin),
AsPath(AsPath),
As4Path(AsPath),
NextHop(IpAddr),
MultiExitDiscriminator(u32),
LocalPreference(u32),
OnlyToCustomer(u32),
AtomicAggregate(AtomicAggregate),
Aggregator(Asn, IpAddr),
Communities(Vec<Community>),
ExtendedCommunities(Vec<ExtendedCommunity>),
LargeCommunities(Vec<LargeCommunity>),
OriginatorId(IpAddr),
Clusters(Vec<IpAddr>),
MpReachNlri(Nlri),
MpUnreachNlri(Nlri),
Development(Vec<u8>),
}Expand description
The AttributeValue enum represents different kinds of Attribute values.
Variants§
Origin(Origin)
AsPath(AsPath)
As4Path(AsPath)
NextHop(IpAddr)
MultiExitDiscriminator(u32)
LocalPreference(u32)
OnlyToCustomer(u32)
AtomicAggregate(AtomicAggregate)
Aggregator(Asn, IpAddr)
Communities(Vec<Community>)
ExtendedCommunities(Vec<ExtendedCommunity>)
LargeCommunities(Vec<LargeCommunity>)
OriginatorId(IpAddr)
Clusters(Vec<IpAddr>)
MpReachNlri(Nlri)
MpUnreachNlri(Nlri)
Development(Vec<u8>)
Trait Implementations§
source§impl Clone for AttributeValue
impl Clone for AttributeValue
source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
Returns a copy of the value. Read more
1.0.0 · 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 AttributeValue
impl Debug for AttributeValue
source§impl PartialEq<AttributeValue> for AttributeValue
impl PartialEq<AttributeValue> for AttributeValue
source§fn eq(&self, other: &AttributeValue) -> bool
fn eq(&self, other: &AttributeValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.