Enum libp2p_kad::PutRecordError[][src]

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
Show fields

Fields of QuorumFailed

key: Keysuccess: Vec<PeerId>

PeerIds of the peers the record was successfully stored on.

quorum: NonZeroUsize
Timeout
Show fields

Fields of Timeout

key: Keysuccess: Vec<PeerId>

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

Performs the conversion.

Performs the conversion.

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.