pub struct SyncStats {
pub unchanged: usize,
pub updated: usize,
pub created: usize,
pub failed: usize,
pub skipped: usize,
}Expand description
Statistics for a portal sync operation.
Fields§
§unchanged: usize§updated: usize§created: usize§failed: usize§skipped: usizeNumber of datasets skipped due to circuit breaker being open.
Implementations§
Source§impl SyncStats
impl SyncStats
Sourcepub fn record(&mut self, outcome: SyncOutcome)
pub fn record(&mut self, outcome: SyncOutcome)
Records an outcome, incrementing the appropriate counter.
Sourcepub fn successful(&self) -> usize
pub fn successful(&self) -> usize
Returns the number of successfully processed datasets.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncStats
impl<'de> Deserialize<'de> for SyncStats
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 SyncStats
impl RefUnwindSafe for SyncStats
impl Send for SyncStats
impl Sync for SyncStats
impl Unpin for SyncStats
impl UnsafeUnpin for SyncStats
impl UnwindSafe for SyncStats
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