[][src]Struct kad::common::entry::Entry

pub struct Entry<Id, Info> { /* fields omitted */ }

Methods

impl<Id, Info> Entry<Id, Info> where
    Id: DatabaseId + Clone + Debug + 'static,
    Info: Clone + Debug + 'static, 
[src]

pub fn new(id: Id, info: Info) -> Entry<Id, Info>[src]

pub fn id(&self) -> &Id[src]

pub fn info(&self) -> &Info[src]

pub fn set_info(&mut self, info: &Info)[src]

pub fn seen(&self) -> Option<Instant>[src]

pub fn set_seen(&mut self, seen: Instant)[src]

Trait Implementations

impl<Id: Eq, Info: Eq> Eq for Entry<Id, Info>[src]

impl<Id, Info> PartialEq<Entry<Id, Info>> for Entry<Id, Info> where
    Id: PartialEq,
    Info: PartialEq
[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<Id: Clone, Info: Clone> Clone for Entry<Id, Info>[src]

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

Performs copy-assignment from source. Read more

impl<Id, Info> From<(Id, Info)> for Entry<Id, Info> where
    Id: DatabaseId + Clone + Debug + 'static,
    Info: Clone + Debug + 'static, 
[src]

impl<Id, Info> Into<(Id, Info)> for Entry<Id, Info> where
    Id: DatabaseId + Clone + Debug + 'static,
    Info: Clone + Debug + 'static, 
[src]

impl<Id: Debug, Info: Debug> Debug for Entry<Id, Info>[src]

impl<Id: Hash, Info: Hash> Hash for Entry<Id, Info>[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<Id, Info> Send for Entry<Id, Info> where
    Id: Send,
    Info: Send

impl<Id, Info> Sync for Entry<Id, Info> where
    Id: Sync,
    Info: Sync

Blanket Implementations

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

type Owned = T

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> Borrow for T where
    T: ?Sized
[src]

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

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

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.