pub struct PeerSyncState {
pub document_versions: HashMap<String, u64>,
pub last_sync: Option<Instant>,
}Expand description
Sync state for a peer.
Fields§
§document_versions: HashMap<String, u64>Last known version for each document.
last_sync: Option<Instant>Last sync time.
Trait Implementations§
Source§impl Clone for PeerSyncState
impl Clone for PeerSyncState
Source§fn clone(&self) -> PeerSyncState
fn clone(&self) -> PeerSyncState
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 moreSource§impl Debug for PeerSyncState
impl Debug for PeerSyncState
Source§impl Default for PeerSyncState
impl Default for PeerSyncState
Source§fn default() -> PeerSyncState
fn default() -> PeerSyncState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PeerSyncState
impl RefUnwindSafe for PeerSyncState
impl Send for PeerSyncState
impl Sync for PeerSyncState
impl Unpin for PeerSyncState
impl UnsafeUnpin for PeerSyncState
impl UnwindSafe for PeerSyncState
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