pub struct VerificationEntry {
pub state: VerificationState,
pub pipeline: HintPipeline,
pub verified_sources: Vec<PeerId>,
pub tried_sources: HashSet<PeerId>,
pub created_at: Instant,
pub hint_sender: PeerId,
}Expand description
Entry in the pending-verification table.
Tracks a single key through the verification FSM, recording which peers responded and which have been tried for fetch.
Fields§
§state: VerificationStateCurrent state in the verification FSM.
pipeline: HintPipelineWhich pipeline admitted this key.
verified_sources: Vec<PeerId>Peers that responded Present during verification (verified fetch
sources).
tried_sources: HashSet<PeerId>Peers already tried for fetch (to avoid retrying the same source).
created_at: InstantWhen this entry was created.
hint_sender: PeerIdThe peer that originally hinted this key (for source tracking).
Trait Implementations§
Source§impl Clone for VerificationEntry
impl Clone for VerificationEntry
Source§fn clone(&self) -> VerificationEntry
fn clone(&self) -> VerificationEntry
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 VerificationEntry
impl RefUnwindSafe for VerificationEntry
impl Send for VerificationEntry
impl Sync for VerificationEntry
impl Unpin for VerificationEntry
impl UnsafeUnpin for VerificationEntry
impl UnwindSafe for VerificationEntry
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