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
Fields of QuorumFailed
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