pub struct SyncStatus {
pub initialized: bool,
pub local_head: u64,
pub remote_head: u64,
pub pending: usize,
pub lag: u64,
pub last_push: Option<DateTime<Utc>>,
pub last_pull: Option<DateTime<Utc>>,
pub buffered_events: usize,
}Expand description
Overall sync status reported by the engine.
This is the Rust equivalent of the JS SyncStatus typedef.
Fields§
§initialized: boolWhether the engine has been initialized.
local_head: u64Current local head sequence.
remote_head: u64Current remote head sequence.
pending: usizeNumber of events pending push.
lag: u64Events behind remote.
last_push: Option<DateTime<Utc>>Timestamp of last push.
last_pull: Option<DateTime<Utc>>Timestamp of last pull.
buffered_events: usizeNumber of events in the buffer.
Trait Implementations§
Source§impl Clone for SyncStatus
impl Clone for SyncStatus
Source§fn clone(&self) -> SyncStatus
fn clone(&self) -> SyncStatus
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 SyncStatus
impl Debug for SyncStatus
Source§impl<'de> Deserialize<'de> for SyncStatus
impl<'de> Deserialize<'de> for SyncStatus
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 SyncStatus
impl RefUnwindSafe for SyncStatus
impl Send for SyncStatus
impl Sync for SyncStatus
impl Unpin for SyncStatus
impl UnsafeUnpin for SyncStatus
impl UnwindSafe for SyncStatus
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