pub struct StalePeerInfo {
pub address: String,
pub reason: StaleReason,
pub time_since_last_seen: Duration,
pub was_connected: bool,
}Expand description
Information about a stale peer
Fields§
§address: StringPeer address
reason: StaleReasonWhy the peer is considered stale
time_since_last_seen: DurationHow long since the peer was last seen
was_connected: boolWhether the peer was connected when it went stale
Trait Implementations§
Source§impl Clone for StalePeerInfo
impl Clone for StalePeerInfo
Source§fn clone(&self) -> StalePeerInfo
fn clone(&self) -> StalePeerInfo
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 StalePeerInfo
impl RefUnwindSafe for StalePeerInfo
impl Send for StalePeerInfo
impl Sync for StalePeerInfo
impl Unpin for StalePeerInfo
impl UnsafeUnpin for StalePeerInfo
impl UnwindSafe for StalePeerInfo
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