pub struct OperationProgress<'a> { /* private fields */ }
Expand description
Allows lengthy operations to communicate their progress.
The Default
and only implementation of this is
self::OperationProgress::quiet
.
Implementations§
Source§impl<'a> OperationProgress<'a>
impl<'a> OperationProgress<'a>
Sourcepub fn new(inner: impl DynOperationProgress + 'static) -> Self
pub fn new(inner: impl DynOperationProgress + 'static) -> Self
Create a new OpProgress Struct from a struct that implements AcquireProgress trait.
Sourcepub fn quiet() -> Self
pub fn quiet() -> Self
Returns a OperationProgress that outputs no data
Generally I have not found much use for displaying OpProgress
pub fn pin(&mut self) -> Pin<&mut OperationProgress<'a>>
Trait Implementations§
Source§impl<'a> Default for OperationProgress<'a>
impl<'a> Default for OperationProgress<'a>
Source§impl<'a> ExternType for OperationProgress<'a>
Impl for sending AcquireProgress across the barrier.
impl<'a> ExternType for OperationProgress<'a>
Impl for sending AcquireProgress across the barrier.
Auto Trait Implementations§
impl<'a> Freeze for OperationProgress<'a>
impl<'a> !RefUnwindSafe for OperationProgress<'a>
impl<'a> !Send for OperationProgress<'a>
impl<'a> !Sync for OperationProgress<'a>
impl<'a> Unpin for OperationProgress<'a>
impl<'a> !UnwindSafe for OperationProgress<'a>
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