pub struct InFlightEntry {
pub key: XorName,
pub source: PeerId,
pub started_at: Instant,
pub all_sources: Vec<PeerId>,
pub tried: HashSet<PeerId>,
}Expand description
An in-flight fetch entry tracking an active download.
Fields§
§key: XorNameThe key being fetched.
source: PeerIdThe peer we are currently fetching from.
started_at: InstantWhen the fetch started.
all_sources: Vec<PeerId>All verified sources for this key.
tried: HashSet<PeerId>Sources already attempted (failed or in progress).
Trait Implementations§
Source§impl Clone for InFlightEntry
impl Clone for InFlightEntry
Source§fn clone(&self) -> InFlightEntry
fn clone(&self) -> InFlightEntry
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 moreAuto Trait Implementations§
impl Freeze for InFlightEntry
impl RefUnwindSafe for InFlightEntry
impl Send for InFlightEntry
impl Sync for InFlightEntry
impl Unpin for InFlightEntry
impl UnsafeUnpin for InFlightEntry
impl UnwindSafe for InFlightEntry
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
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