[][src]Enum susyp2p::kad::kbucket::InsertOutcome

#[must_use]
pub enum InsertOutcome<TPeerId> { Inserted, Pending { to_ping: TPeerId, }, Full, }

Outcome of calling insert.

Variants

Inserted

The entry has been successfully inserted.

Pending

The entry has been inserted as a pending node.

Fields of Pending

to_ping: TPeerId

We have to try connect to the returned node.

Full

The entry was not inserted because the bucket was full of connected nodes.

Trait Implementations

impl<TPeerId> Copy for InsertOutcome<TPeerId> where
    TPeerId: Copy
[src]

impl<TPeerId> Clone for InsertOutcome<TPeerId> where
    TPeerId: Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<TPeerId> Eq for InsertOutcome<TPeerId> where
    TPeerId: Eq
[src]

impl<TPeerId> Debug for InsertOutcome<TPeerId> where
    TPeerId: Debug
[src]

impl<TPeerId> PartialEq<InsertOutcome<TPeerId>> for InsertOutcome<TPeerId> where
    TPeerId: PartialEq<TPeerId>, 
[src]

Auto Trait Implementations

impl<TPeerId> Send for InsertOutcome<TPeerId> where
    TPeerId: Send

impl<TPeerId> Sync for InsertOutcome<TPeerId> where
    TPeerId: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

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

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.