Enum bgp_models::bgp::attributes::AsPathSegment
source · pub enum AsPathSegment {
AsSequence(Vec<Asn>),
AsSet(Vec<Asn>),
ConfedSequence(Vec<Asn>),
ConfedSet(Vec<Asn>),
}Expand description
Enum of AS path segment.
Variants§
Implementations§
source§impl AsPathSegment
impl AsPathSegment
pub fn count_asns(&self) -> usize
Trait Implementations§
source§impl Clone for AsPathSegment
impl Clone for AsPathSegment
source§fn clone(&self) -> AsPathSegment
fn clone(&self) -> AsPathSegment
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 AsPathSegment
impl Debug for AsPathSegment
source§impl PartialEq<AsPathSegment> for AsPathSegment
impl PartialEq<AsPathSegment> for AsPathSegment
source§fn eq(&self, other: &AsPathSegment) -> bool
fn eq(&self, other: &AsPathSegment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.