pub enum LookupQueryOutcome<N> {
Succeeded {
responder: LookupKey,
candidates: Vec<N>,
},
Failed {
responder: LookupKey,
},
Unresponsive {
responder: LookupKey,
},
}Expand description
Result of one transport query in an iterative lookup batch.
Variants§
Succeeded
The responder returned a valid response and zero or more validated candidates.
Fields
Failed
The query completed with a transport or protocol failure.
Unresponsive
The transport abandoned the query after its batch grace period.
Implementations§
Trait Implementations§
Source§impl<N: Clone> Clone for LookupQueryOutcome<N>
impl<N: Clone> Clone for LookupQueryOutcome<N>
Source§impl<N: Debug> Debug for LookupQueryOutcome<N>
impl<N: Debug> Debug for LookupQueryOutcome<N>
impl<N: Eq> Eq for LookupQueryOutcome<N>
Source§impl<N: PartialEq> PartialEq for LookupQueryOutcome<N>
impl<N: PartialEq> PartialEq for LookupQueryOutcome<N>
impl<N: PartialEq> StructuralPartialEq for LookupQueryOutcome<N>
Auto Trait Implementations§
impl<N> Freeze for LookupQueryOutcome<N>
impl<N> RefUnwindSafe for LookupQueryOutcome<N>where
Vec<N>: RefUnwindSafe,
impl<N> Send for LookupQueryOutcome<N>
impl<N> Sync for LookupQueryOutcome<N>
impl<N> Unpin for LookupQueryOutcome<N>
impl<N> UnsafeUnpin for LookupQueryOutcome<N>where
Vec<N>: UnsafeUnpin,
impl<N> UnwindSafe for LookupQueryOutcome<N>where
Vec<N>: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.