pub struct SyncStatistics {
pub total_syncs: usize,
pub successful_syncs: usize,
pub failed_syncs: usize,
pub pending_items: usize,
pub last_sync: Option<DateTime<Utc>>,
pub avg_throughput_bps: f64,
}Expand description
Sync statistics
Fields§
§total_syncs: usizeTotal number of syncs
successful_syncs: usizeSuccessful syncs
failed_syncs: usizeFailed syncs
pending_items: usizePending items
last_sync: Option<DateTime<Utc>>Last sync timestamp
avg_throughput_bps: f64Average throughput in bytes per second
Implementations§
Source§impl SyncStatistics
impl SyncStatistics
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate
Trait Implementations§
Source§impl Clone for SyncStatistics
impl Clone for SyncStatistics
Source§fn clone(&self) -> SyncStatistics
fn clone(&self) -> SyncStatistics
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 SyncStatistics
impl Debug for SyncStatistics
Source§impl<'de> Deserialize<'de> for SyncStatistics
impl<'de> Deserialize<'de> for SyncStatistics
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 SyncStatistics
impl RefUnwindSafe for SyncStatistics
impl Send for SyncStatistics
impl Sync for SyncStatistics
impl Unpin for SyncStatistics
impl UnsafeUnpin for SyncStatistics
impl UnwindSafe for SyncStatistics
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