Enum bgp_models::bgp::attributes::Attribute[][src]

pub enum Attribute {
Show 16 variants Origin(Origin), AsPath(AsPath), As4Path(AsPath), NextHop(IpAddr), MultiExitDiscriminator(u32), LocalPreference(u32), AtomicAggregate(AtomicAggregate), Aggregator(AsnIpAddr), Communities(Vec<Community>), ExtendedCommunities(Vec<ExtendedCommunity>), LargeCommunities(Vec<LargeCommunity>), OriginatorId(IpAddr), Clusters(Vec<IpAddr>), MpReachNlri(Nlri), MpUnreachNlri(Nlri), Development(Vec<u8>),
}
Expand description

The Attribute enum represents different kinds of Attribute values.

Variants

Origin(Origin)

Tuple Fields

0: Origin

AsPath(AsPath)

Tuple Fields

0: AsPath

As4Path(AsPath)

Tuple Fields

0: AsPath

NextHop(IpAddr)

Tuple Fields

0: IpAddr

MultiExitDiscriminator(u32)

Tuple Fields

0: u32

LocalPreference(u32)

Tuple Fields

0: u32

AtomicAggregate(AtomicAggregate)

Tuple Fields

Aggregator(AsnIpAddr)

Tuple Fields

0: Asn
1: IpAddr

Communities(Vec<Community>)

Tuple Fields

ExtendedCommunities(Vec<ExtendedCommunity>)

Tuple Fields

LargeCommunities(Vec<LargeCommunity>)

Tuple Fields

OriginatorId(IpAddr)

Tuple Fields

0: IpAddr

Clusters(Vec<IpAddr>)

Tuple Fields

0: Vec<IpAddr>

MpReachNlri(Nlri)

Tuple Fields

0: Nlri

MpUnreachNlri(Nlri)

Tuple Fields

0: Nlri

Development(Vec<u8>)

Tuple Fields

0: Vec<u8>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.