pub enum AsPathSegment {
AsSet(Vec<u32>),
AsSequence(Vec<u32>),
}Expand description
AS_PATH segment types per RFC 4271 §4.3.
Variants§
AsSet(Vec<u32>)
AS_SET — unordered set of ASNs.
AsSequence(Vec<u32>)
AS_SEQUENCE — ordered sequence of ASNs.
Trait Implementations§
Source§impl Clone for AsPathSegment
impl Clone for AsPathSegment
Source§fn clone(&self) -> AsPathSegment
fn clone(&self) -> AsPathSegment
Returns a duplicate 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 Hash for AsPathSegment
impl Hash for AsPathSegment
Source§impl PartialEq for AsPathSegment
impl PartialEq for AsPathSegment
impl Eq for AsPathSegment
impl StructuralPartialEq for AsPathSegment
Auto Trait Implementations§
impl Freeze for AsPathSegment
impl RefUnwindSafe for AsPathSegment
impl Send for AsPathSegment
impl Sync for AsPathSegment
impl Unpin for AsPathSegment
impl UnsafeUnpin for AsPathSegment
impl UnwindSafe for AsPathSegment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more