pub enum Segment {
AS_SEQUENCE(Vec<u32>),
AS_SET(Vec<u32>),
}
Expand description
Represents the segment type of an AS_PATH. Can be either AS_SEQUENCE or AS_SET.
Variants§
AS_SEQUENCE(Vec<u32>)
Represents a sequence of ASN that an announcement traveled through.
AS_SET(Vec<u32>)
Represents a set of ASN through which a BGP message traveled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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