pub struct BucketEntry {
pub status: u16,
pub entry: Entry,
pub failures: u32,
pub last_seen: i64,
}
Expand description
A BucketEntry represents a peer in the routing table.
Fields§
§status: u16
§entry: Entry
§failures: u32
§last_seen: i64
Implementations§
Source§impl BucketEntry
impl BucketEntry
pub fn is_connected(&self) -> bool
pub fn is_incompatible(&self) -> bool
pub fn is_unreachable(&self) -> bool
pub fn is_unstable(&self) -> bool
Trait Implementations§
Source§impl Clone for BucketEntry
impl Clone for BucketEntry
Source§fn clone(&self) -> BucketEntry
fn clone(&self) -> BucketEntry
Returns a copy 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 UnwindSafe for BucketEntry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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