pub struct BucketEntry {
pub peer: PeerInfo,
pub last_seen: Instant,
pub rtt: Option<Duration>,
pub failed_queries: u32,
}Expand description
Entry in a K-bucket
Fields§
§peer: PeerInfo§last_seen: Instant§rtt: Option<Duration>§failed_queries: u32Trait Implementations§
Source§impl Clone for BucketEntry
impl Clone for BucketEntry
Source§fn clone(&self) -> BucketEntry
fn clone(&self) -> BucketEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BucketEntry
impl RefUnwindSafe for BucketEntry
impl Send for BucketEntry
impl Sync for BucketEntry
impl Unpin for BucketEntry
impl UnsafeUnpin for BucketEntry
impl UnwindSafe for BucketEntry
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