pub enum SyncProtocolState {
Idle,
SendingVector,
ReceivingDocuments,
SendingDocuments,
WaitingAck,
Complete,
Error,
}Expand description
Sync protocol state machine state
Variants§
Idle
Idle, not syncing
SendingVector
Waiting to send sync vector
ReceivingDocuments
Waiting for documents
SendingDocuments
Sending documents
WaitingAck
Waiting for acknowledgements
Complete
Sync complete
Error
Error state
Trait Implementations§
Source§impl Clone for SyncProtocolState
impl Clone for SyncProtocolState
Source§fn clone(&self) -> SyncProtocolState
fn clone(&self) -> SyncProtocolState
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 SyncProtocolState
impl Debug for SyncProtocolState
Source§impl PartialEq for SyncProtocolState
impl PartialEq for SyncProtocolState
impl Copy for SyncProtocolState
impl Eq for SyncProtocolState
impl StructuralPartialEq for SyncProtocolState
Auto Trait Implementations§
impl Freeze for SyncProtocolState
impl RefUnwindSafe for SyncProtocolState
impl Send for SyncProtocolState
impl Sync for SyncProtocolState
impl Unpin for SyncProtocolState
impl UnwindSafe for SyncProtocolState
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