pub enum ProximitySearchEvent {
RequestCommitted(Cid),
FrontierPushed {
cid: Cid,
bound_bits: u64,
},
FrontierPopped {
cid: Cid,
bound_bits: u64,
},
VisitedObject(Cid),
CandidateScored {
key: Vec<u8>,
distance_bits: u64,
},
AuthenticatedObject {
kind: ContentObjectKind,
cid: Cid,
},
Candidate {
key: Vec<u8>,
distance_bits: u64,
},
Completed(SearchCompletion),
}Expand description
Deterministic, tamper-evident replay transcript summary.
Variants§
RequestCommitted(Cid)
FrontierPushed
FrontierPopped
VisitedObject(Cid)
CandidateScored
AuthenticatedObject
Candidate
Completed(SearchCompletion)
Trait Implementations§
Source§impl Clone for ProximitySearchEvent
impl Clone for ProximitySearchEvent
Source§fn clone(&self) -> ProximitySearchEvent
fn clone(&self) -> ProximitySearchEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProximitySearchEvent
impl Debug for ProximitySearchEvent
impl Eq for ProximitySearchEvent
Source§impl PartialEq for ProximitySearchEvent
impl PartialEq for ProximitySearchEvent
impl StructuralPartialEq for ProximitySearchEvent
Auto Trait Implementations§
impl Freeze for ProximitySearchEvent
impl RefUnwindSafe for ProximitySearchEvent
impl Send for ProximitySearchEvent
impl Sync for ProximitySearchEvent
impl Unpin for ProximitySearchEvent
impl UnsafeUnpin for ProximitySearchEvent
impl UnwindSafe for ProximitySearchEvent
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> 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