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.)
Trait Implementations§
Source§impl Clone for ProgressSink
impl Clone for ProgressSink
Source§fn clone(&self) -> ProgressSink
fn clone(&self) -> ProgressSink
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 ProgressSink
impl Debug for ProgressSink
Source§impl Default for ProgressSink
impl Default for ProgressSink
Source§fn default() -> ProgressSink
fn default() -> ProgressSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgressSink
impl !RefUnwindSafe for ProgressSink
impl Send for ProgressSink
impl Sync for ProgressSink
impl Unpin for ProgressSink
impl UnsafeUnpin for ProgressSink
impl !UnwindSafe 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