pub struct NoopObserver;Expand description
No-op observer used by ApplyContext when none
is configured.
Public because ApplyContext::with_observer
is generic over impl ApplyObserver + 'static and callers occasionally need
to name the default in Box<dyn ApplyObserver>-typed fields. All trait
methods use the trait defaults.
Trait Implementations§
Source§impl ApplyObserver for NoopObserver
impl ApplyObserver for NoopObserver
Source§fn on_chunk_applied(&mut self, ev: ChunkEvent) -> ControlFlow<(), ()>
fn on_chunk_applied(&mut self, ev: ChunkEvent) -> ControlFlow<(), ()>
Called after each top-level chunk has been applied successfully. Read more
Source§fn should_cancel(&mut self) -> bool
fn should_cancel(&mut self) -> bool
Polled inside long-running chunks to check for user cancellation. Read more
Source§impl Clone for NoopObserver
impl Clone for NoopObserver
Source§fn clone(&self) -> NoopObserver
fn clone(&self) -> NoopObserver
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 Debug for NoopObserver
impl Debug for NoopObserver
Source§impl Default for NoopObserver
impl Default for NoopObserver
Source§fn default() -> NoopObserver
fn default() -> NoopObserver
Returns the “default value” for a type. Read more
impl Copy for NoopObserver
Auto Trait Implementations§
impl Freeze for NoopObserver
impl RefUnwindSafe for NoopObserver
impl Send for NoopObserver
impl Sync for NoopObserver
impl Unpin for NoopObserver
impl UnsafeUnpin for NoopObserver
impl UnwindSafe for NoopObserver
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