pub struct PeerDocState {
pub last_received: Option<UnixTimestamp>,
pub last_sent: Option<UnixTimestamp>,
pub last_sent_heads: Option<Vec<ChangeHash>>,
pub last_acked_heads: Option<Vec<ChangeHash>>,
}Expand description
The state of synchronization for one (peer, document) pair
Fields§
§last_received: Option<UnixTimestamp>When we last received a message from this peer
last_sent: Option<UnixTimestamp>When we last sent a message to this peer
last_sent_heads: Option<Vec<ChangeHash>>The heads of the document when we last sent a message
last_acked_heads: Option<Vec<ChangeHash>>The last heads of the document that the peer said they had
Trait Implementations§
Source§impl Clone for PeerDocState
impl Clone for PeerDocState
Source§fn clone(&self) -> PeerDocState
fn clone(&self) -> PeerDocState
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 PeerDocState
impl Debug for PeerDocState
Source§impl PartialEq for PeerDocState
impl PartialEq for PeerDocState
Source§impl PartialOrd for PeerDocState
impl PartialOrd for PeerDocState
impl Eq for PeerDocState
impl StructuralPartialEq for PeerDocState
Auto Trait Implementations§
impl Freeze for PeerDocState
impl RefUnwindSafe for PeerDocState
impl Send for PeerDocState
impl Sync for PeerDocState
impl Unpin for PeerDocState
impl UnwindSafe for PeerDocState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more