[][src]Enum libp2p_kad::GetProvidersError

pub enum GetProvidersError {
    Timeout {
        key: Key,
        providers: Vec<PeerId>,
        closest_peers: Vec<PeerId>,

The error result of Kademlia::get_providers.



Fields of Timeout

key: Keyproviders: Vec<PeerId>closest_peers: Vec<PeerId>


impl GetProvidersError[src]

pub fn key(&self) -> &Key[src]

Gets the key for which the operation failed.

pub fn into_key(self) -> Key[src]

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

Trait Implementations

impl Clone for GetProvidersError[src]

impl Debug for GetProvidersError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,