Enum libp2p_kad::GetRecordError
source · pub enum GetRecordError {
NotFound {
key: Key,
closest_peers: Vec<PeerId>,
},
QuorumFailed {
key: Key,
records: Vec<PeerRecord>,
quorum: NonZeroUsize,
},
Timeout {
key: Key,
},
}
Expand description
The error result of Kademlia::get_record
.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for GetRecordError
impl Clone for GetRecordError
source§fn clone(&self) -> GetRecordError
fn clone(&self) -> GetRecordError
Returns a copy of the value. Read more
1.0.0 · 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 GetRecordError
impl Debug for GetRecordError
source§impl Display for GetRecordError
impl Display for GetRecordError
source§impl Error for GetRecordError
impl Error for GetRecordError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()