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§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more