logo
pub enum PutRecordError {
    QuorumFailed {
        key: Key,
        success: Vec<PeerId, Global>,
        quorum: NonZeroUsize,
    },
    Timeout {
        key: Key,
        success: Vec<PeerId, Global>,
        quorum: NonZeroUsize,
    },
}
Expand description

The error result of Kademlia::put_record.

Variants

QuorumFailed

Fields

key: Key
success: Vec<PeerId, Global>

PeerIds of the peers the record was successfully stored on.

quorum: NonZeroUsize

Timeout

Fields

key: Key
success: Vec<PeerId, Global>

PeerIds of the peers the record was successfully stored on.

quorum: NonZeroUsize

Implementations

Gets the key of the record for which the operation failed.

Extracts the key of the record for which the operation failed, consuming the error.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.