pub struct ASPath {
pub segments: Vec<Segment>,
}
Expand description
Represents the path that an announcement has traveled.
Fields§
§segments: Vec<Segment>
A collection of segments that together form the path that a message has traveled.
Implementations§
Source§impl ASPath
impl ASPath
Sourcepub fn origin(&self) -> Option<u32>
pub fn origin(&self) -> Option<u32>
Retrieves the AS that originated the announcement. Returns None if it is originated by as an AS_SET.
Sourcepub fn has_4_byte_asns(&self) -> bool
pub fn has_4_byte_asns(&self) -> bool
Does this AsPath contain 4-byte ASNs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ASPath
impl RefUnwindSafe for ASPath
impl Send for ASPath
impl Sync for ASPath
impl Unpin for ASPath
impl UnwindSafe for ASPath
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