pub struct UsedPath {
pub path: ScionPath,
pub src: IsdAsn,
pub dst: IsdAsn,
pub segments: ArrayVec<[SegmentSourceId; 3]>,
}Expand description
A path together with the segments it was combined from.
A path can be built from at most three segments (up, core, down).
Fields§
§path: ScionPathThe combined path.
src: IsdAsnThe source the path was combined for.
dst: IsdAsnThe destination the path was combined for.
segments: ArrayVec<[SegmentSourceId; 3]>The segments the path was combined from, in path order.
Implementations§
Source§impl UsedPath
impl UsedPath
Sourcepub fn expiration(&self) -> Option<SystemTime>
pub fn expiration(&self) -> Option<SystemTime>
The expiration of the underlying dataplane path.
None for paths that do not carry an expiration, e.g. AS local paths.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsedPath
impl RefUnwindSafe for UsedPath
impl Send for UsedPath
impl Sync for UsedPath
impl Unpin for UsedPath
impl UnsafeUnpin for UsedPath
impl UnwindSafe for UsedPath
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more