pub enum SyncState {
Idle,
Sending,
Receiving,
WaitingAck,
}Expand description
State of the sync protocol
Variants§
Idle
Idle, not syncing
Sending
Sending data to peer
Receiving
Receiving data from peer
WaitingAck
Waiting for acknowledgment
Trait Implementations§
impl Copy for SyncState
impl Eq for SyncState
impl StructuralPartialEq for SyncState
Auto Trait Implementations§
impl Freeze for SyncState
impl RefUnwindSafe for SyncState
impl Send for SyncState
impl Sync for SyncState
impl Unpin for SyncState
impl UnwindSafe for SyncState
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