Struct jormungandr_lib::interfaces::PeerStats
source · pub struct PeerStats {
pub addr: Option<SocketAddr>,
pub established_at: SystemTime,
pub last_block_received: Option<SystemTime>,
pub last_fragment_received: Option<SystemTime>,
pub last_gossip_received: Option<SystemTime>,
}
Fields§
§addr: Option<SocketAddr>
§established_at: SystemTime
§last_block_received: Option<SystemTime>
§last_fragment_received: Option<SystemTime>
§last_gossip_received: Option<SystemTime>
Trait Implementations§
source§impl<'de> Deserialize<'de> for PeerStats
impl<'de> Deserialize<'de> for PeerStats
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PeerStats> for PeerStats
impl PartialEq<PeerStats> for PeerStats
impl Eq for PeerStats
impl StructuralEq for PeerStats
impl StructuralPartialEq for PeerStats
Auto Trait Implementations§
impl RefUnwindSafe for PeerStats
impl Send for PeerStats
impl Sync for PeerStats
impl Unpin for PeerStats
impl UnwindSafe for PeerStats
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