pub struct PeerInfo {
pub replica_id: ReplicaId,
pub last_seen: DateTime<Utc>,
pub is_online: bool,
pub last_sync: Option<DateTime<Utc>>,
pub sync_status: PeerSyncStatus,
}Expand description
Information about a peer
Fields§
§replica_id: ReplicaId§last_seen: DateTime<Utc>§is_online: bool§last_sync: Option<DateTime<Utc>>§sync_status: PeerSyncStatusTrait Implementations§
Source§impl<'de> Deserialize<'de> for PeerInfo
impl<'de> Deserialize<'de> for PeerInfo
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
Auto Trait Implementations§
impl Freeze for PeerInfo
impl RefUnwindSafe for PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnwindSafe for PeerInfo
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