Struct libp2p_kad::kbucket::EntryRefView
source · [−]pub struct EntryRefView<'a, TPeerId, TVal> {
pub node: NodeRefView<'a, TPeerId, TVal>,
pub status: NodeStatus,
}
Expand description
An immutable by-reference view of a bucket entry.
Fields
node: NodeRefView<'a, TPeerId, TVal>
The node represented by the entry.
status: NodeStatus
The status of the node identified by the key.
Implementations
sourceimpl<TKey, TVal> EntryRefView<'_, TKey, TVal>
impl<TKey, TVal> EntryRefView<'_, TKey, TVal>
Auto Trait Implementations
impl<'a, TPeerId, TVal> RefUnwindSafe for EntryRefView<'a, TPeerId, TVal> where
TPeerId: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<'a, TPeerId, TVal> Send for EntryRefView<'a, TPeerId, TVal> where
TPeerId: Sync,
TVal: Sync,
impl<'a, TPeerId, TVal> Sync for EntryRefView<'a, TPeerId, TVal> where
TPeerId: Sync,
TVal: Sync,
impl<'a, TPeerId, TVal> Unpin for EntryRefView<'a, TPeerId, TVal>
impl<'a, TPeerId, TVal> UnwindSafe for EntryRefView<'a, TPeerId, TVal> where
TPeerId: RefUnwindSafe,
TVal: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more