pub struct ProgressObserver(/* private fields */);Implementations§
Source§impl ProgressObserver
impl ProgressObserver
pub fn snapshot(&self) -> Option<SyncProgress>
pub fn subscribe( &self, listener: impl Fn(&SyncProgress) + Send + Sync + 'static, ) -> ProgressSubscription
Trait Implementations§
Source§impl Clone for ProgressObserver
impl Clone for ProgressObserver
Source§fn clone(&self) -> ProgressObserver
fn clone(&self) -> ProgressObserver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ProgressObserver
impl Default for ProgressObserver
Source§fn default() -> ProgressObserver
fn default() -> ProgressObserver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgressObserver
impl RefUnwindSafe for ProgressObserver
impl Send for ProgressObserver
impl Sync for ProgressObserver
impl Unpin for ProgressObserver
impl UnsafeUnpin for ProgressObserver
impl UnwindSafe for ProgressObserver
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