Struct grin_p2p::types::PeerLiveInfo
source · pub struct PeerLiveInfo {
pub total_difficulty: Difficulty,
pub height: u64,
pub last_seen: DateTime<Utc>,
pub stuck_detector: DateTime<Utc>,
pub first_seen: DateTime<Utc>,
}
Fields§
§total_difficulty: Difficulty
§height: u64
§last_seen: DateTime<Utc>
§stuck_detector: DateTime<Utc>
§first_seen: DateTime<Utc>
Implementations§
source§impl PeerLiveInfo
impl PeerLiveInfo
pub fn new(difficulty: Difficulty) -> PeerLiveInfo
Trait Implementations§
source§impl Clone for PeerLiveInfo
impl Clone for PeerLiveInfo
source§fn clone(&self) -> PeerLiveInfo
fn clone(&self) -> PeerLiveInfo
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 PeerLiveInfo
impl RefUnwindSafe for PeerLiveInfo
impl Send for PeerLiveInfo
impl Sync for PeerLiveInfo
impl Unpin for PeerLiveInfo
impl UnwindSafe for PeerLiveInfo
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
source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.