pub enum ProgressSink {
None,
Callback(Arc<dyn Fn(ProgressEvent) + Send + Sync>),
}Expand description
How progress events are delivered to the consumer.
All variants are cheaply cloneable (Arc / channel Sender).
Variants§
None
No progress reporting.
Callback(Arc<dyn Fn(ProgressEvent) + Send + Sync>)
Synchronous callback (for Python bindings, tests, embedding, etc.)
Implementations§
Source§impl ProgressSink
impl ProgressSink
Trait Implementations§
Source§impl Clone for ProgressSink
impl Clone for ProgressSink
Source§impl Debug for ProgressSink
impl Debug for ProgressSink
Auto Trait Implementations§
impl !RefUnwindSafe for ProgressSink
impl !UnwindSafe for ProgressSink
impl Freeze for ProgressSink
impl Send for ProgressSink
impl Sync for ProgressSink
impl Unpin for ProgressSink
impl UnsafeUnpin for ProgressSink
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