[−][src]Struct kad::common::entry::Entry
Methods
impl<Id, Info> Entry<Id, Info> where
Id: DatabaseId + Clone + Debug + 'static,
Info: Clone + Debug + 'static,
[src]
Id: DatabaseId + Clone + Debug + 'static,
Info: Clone + Debug + 'static,
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]
Id: PartialEq,
Info: PartialEq,
fn eq(&self, other: &Entry<Id, Info>) -> bool
[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<Id: Clone, Info: Clone> Clone for Entry<Id, Info>
[src]
fn clone(&self) -> 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]
Id: DatabaseId + Clone + Debug + 'static,
Info: Clone + Debug + 'static,
impl<Id, Info> Into<(Id, Info)> for Entry<Id, Info> where
Id: DatabaseId + Clone + Debug + 'static,
Info: Clone + Debug + 'static,
[src]
Id: DatabaseId + Clone + Debug + 'static,
Info: Clone + Debug + 'static,
impl<Id: Debug, Info: Debug> Debug for Entry<Id, Info>
[src]
impl<Id: Hash, Info: Hash> Hash for Entry<Id, Info>
[src]
Auto Trait Implementations
impl<Id, Info> Send for Entry<Id, Info> where
Id: Send,
Info: Send,
Id: Send,
Info: Send,
impl<Id, Info> Sync for Entry<Id, Info> where
Id: Sync,
Info: Sync,
Id: Sync,
Info: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,