pub struct SegmentsIter<'store> { /* private fields */ }Expand description
Borrowed view of the segments of one (src, dst) pair.
This holds a lock on the store entry, so it must not be held across an .await that can
touch the SegmentManager again.
Implementations§
Source§impl SegmentsIter<'_>
impl SegmentsIter<'_>
Sourcepub fn iter_core_segments(&self) -> impl Iterator<Item = &SignedPathSegment>
pub fn iter_core_segments(&self) -> impl Iterator<Item = &SignedPathSegment>
Iterates over the core segments of the pair.
Sourcepub fn iter_non_core_segments(&self) -> impl Iterator<Item = &SignedPathSegment>
pub fn iter_non_core_segments(&self) -> impl Iterator<Item = &SignedPathSegment>
Iterates over the up and down segments of the pair.
Sourcepub fn has_core_segment(&self, fp: SegmentFp) -> bool
pub fn has_core_segment(&self, fp: SegmentFp) -> bool
Returns whether the pair holds a core segment with the given fingerprint.
Sourcepub fn has_non_core_segment(&self, fp: SegmentFp) -> bool
pub fn has_non_core_segment(&self, fp: SegmentFp) -> bool
Returns whether the pair holds an up or down segment with the given fingerprint.
Auto Trait Implementations§
impl<'store> !RefUnwindSafe for SegmentsIter<'store>
impl<'store> !UnwindSafe for SegmentsIter<'store>
impl<'store> Freeze for SegmentsIter<'store>
impl<'store> Send for SegmentsIter<'store>
impl<'store> Sync for SegmentsIter<'store>
impl<'store> Unpin for SegmentsIter<'store>
impl<'store> UnsafeUnpin for SegmentsIter<'store>
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> 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