[−][src]Struct libp2p_kad::kbucket::PresentEntry
An entry present in a bucket.
Methods
impl<'a, TPeerId, TVal> PresentEntry<'a, TPeerId, TVal> where
TPeerId: Clone,
[src]
TPeerId: Clone,
pub fn key(&self) -> &Key<TPeerId>
[src]
Returns the key of the entry.
pub fn value(&mut self) -> &mut TVal
[src]
Returns the value associated with the key.
pub fn update(self, status: NodeStatus) -> Self
[src]
Sets the status of the entry to NodeStatus::Disconnected
.
Trait Implementations
impl<'a, TPeerId: Debug, TVal: Debug> Debug for PresentEntry<'a, TPeerId, TVal>
[src]
Auto Trait Implementations
impl<'a, TPeerId, TVal> Send for PresentEntry<'a, TPeerId, TVal> where
TPeerId: Send + Sync,
TVal: Send,
TPeerId: Send + Sync,
TVal: Send,
impl<'a, TPeerId, TVal> Sync for PresentEntry<'a, TPeerId, TVal> where
TPeerId: Sync,
TVal: Sync,
TPeerId: Sync,
TVal: Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self