Enum libp2p_kad::GetRecordError [−][src]
pub enum GetRecordError { NotFound { key: Key, closest_peers: Vec<PeerId>, }, QuorumFailed { key: Key, records: Vec<PeerRecord>, quorum: NonZeroUsize, }, Timeout { key: Key, records: Vec<PeerRecord>, quorum: NonZeroUsize, }, }
Expand description
The error result of Kademlia::get_record
.
Variants
Show fields
Fields of QuorumFailed
Show fields
Fields of Timeout
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GetRecordError
impl Send for GetRecordError
impl Sync for GetRecordError
impl Unpin for GetRecordError
impl UnwindSafe for GetRecordError
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V