pub struct Progress { /* private fields */ }Implementations§
Source§impl Progress
impl Progress
Sourcepub fn new<F>(handler: F) -> Selfwhere
F: Fn(ProgressEvent) + 'static,
pub fn new<F>(handler: F) -> Selfwhere
F: Fn(ProgressEvent) + 'static,
Create a new Progress structure with a given handler to be called on events.
pub fn started(&self, total_bytes: u32)
pub fn erased(&self)
pub fn programmed(&self, bytes: u32)
pub fn finished(&self)
pub fn aborted(&self)
Auto Trait Implementations§
impl Freeze for Progress
impl !RefUnwindSafe for Progress
impl !Send for Progress
impl !Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl !UnwindSafe for Progress
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