Enum libp2p::kad::GetRecordError [−][src]
pub enum GetRecordError {
NotFound {
key: Key,
closest_peers: Vec<PeerId, Global>,
},
QuorumFailed {
key: Key,
records: Vec<PeerRecord, Global>,
quorum: NonZeroUsize,
},
Timeout {
key: Key,
records: Vec<PeerRecord, Global>,
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 GetRecordErrorimpl Send for GetRecordErrorimpl Sync for GetRecordErrorimpl Unpin for GetRecordErrorimpl UnwindSafe for GetRecordErrorBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V