Enum libp2p_kad::GetClosestPeersError
source · pub enum GetClosestPeersError {
Timeout {
key: Vec<u8>,
peers: Vec<PeerId>,
},
}
Expand description
The error result of Kademlia::get_closest_peers
.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for GetClosestPeersError
impl Clone for GetClosestPeersError
source§fn clone(&self) -> GetClosestPeersError
fn clone(&self) -> GetClosestPeersError
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 GetClosestPeersError
impl Debug for GetClosestPeersError
source§impl Display for GetClosestPeersError
impl Display for GetClosestPeersError
source§impl Error for GetClosestPeersError
impl Error for GetClosestPeersError
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()
Auto Trait Implementations§
impl RefUnwindSafe for GetClosestPeersError
impl Send for GetClosestPeersError
impl Sync for GetClosestPeersError
impl Unpin for GetClosestPeersError
impl UnwindSafe for GetClosestPeersError
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