Enum bgpkit_parser::attributes::AsPathSegment
source · pub enum AsPathSegment {
AsSequence(Vec<Asn, Global>),
AsSet(Vec<Asn, Global>),
ConfedSequence(Vec<Asn, Global>),
ConfedSet(Vec<Asn, Global>),
}
Expand description
Enum of AS path segment.
Variants§
AsSequence(Vec<Asn, Global>)
AsSet(Vec<Asn, Global>)
ConfedSequence(Vec<Asn, Global>)
ConfedSet(Vec<Asn, Global>)
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 ==
.impl Eq for AsPathSegment
impl StructuralEq for AsPathSegment
impl StructuralPartialEq for AsPathSegment
Auto Trait Implementations§
impl RefUnwindSafe for AsPathSegment
impl Send for AsPathSegment
impl Sync for AsPathSegment
impl Unpin for AsPathSegment
impl UnwindSafe for AsPathSegment
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.