Enum libp2p_kad::PutRecordError
source · [−]pub enum PutRecordError {
QuorumFailed {
key: Key,
success: Vec<PeerId>,
quorum: NonZeroUsize,
},
Timeout {
key: Key,
success: Vec<PeerId>,
quorum: NonZeroUsize,
},
}
Expand description
The error result of Kademlia::put_record
.
Variants
QuorumFailed
Timeout
Implementations
sourceimpl PutRecordError
impl PutRecordError
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PutRecordError
impl Send for PutRecordError
impl Sync for PutRecordError
impl Unpin for PutRecordError
impl UnwindSafe for PutRecordError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more