pub struct SyncProgress { /* private fields */ }Expand description
A structure that tracks the progression and the errors that happen during a sync
Implementations§
Source§impl SyncProgress
impl SyncProgress
pub fn new() -> Self
pub fn new_with_feedback_channel(channel: FeedbackSender) -> Self
Sourcepub fn reset_counter(&mut self)
pub fn reset_counter(&mut self)
Reset the user-info counter
Sourcepub fn increment_counter(&mut self, increment: usize)
pub fn increment_counter(&mut self, increment: usize)
Increments the user-info counter.
Sourcepub fn counter(&self) -> usize
pub fn counter(&self) -> usize
Retrieves the current user-info counter. This counts “arbitrary things”, that’s provided as a convenience but it is not used internally (e.g. that can be used to keep track of the items handled for the current calendar)
pub fn is_success(&self) -> bool
Auto Trait Implementations§
impl Freeze for SyncProgress
impl RefUnwindSafe for SyncProgress
impl Send for SyncProgress
impl Sync for SyncProgress
impl Unpin for SyncProgress
impl UnwindSafe for SyncProgress
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more