pub struct ProgressCallback<F>(/* private fields */);
Available on crate feature
fs
only.Expand description
Optional function called by Windows for every transferred chunk of a file.
This is used in PathExt::copy_file_to
and PathExt::move_to
to receive progress notifications and to potentially pause or cancel the operation.
Use Default::default
to disable.
Implementations§
Source§impl<F> ProgressCallback<F>
impl<F> ProgressCallback<F>
Trait Implementations§
Source§impl<F: Clone> Clone for ProgressCallback<F>
impl<F: Clone> Clone for ProgressCallback<F>
Source§fn clone(&self) -> ProgressCallback<F>
fn clone(&self) -> ProgressCallback<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F: Debug> Debug for ProgressCallback<F>
impl<F: Debug> Debug for ProgressCallback<F>
Source§impl Default for ProgressCallback<fn(ProgressStatus) -> ProgressRetVal>
impl Default for ProgressCallback<fn(ProgressStatus) -> ProgressRetVal>
Auto Trait Implementations§
impl<F> Freeze for ProgressCallback<F>where
F: Freeze,
impl<F> RefUnwindSafe for ProgressCallback<F>where
F: RefUnwindSafe,
impl<F> Send for ProgressCallback<F>where
F: Send,
impl<F> Sync for ProgressCallback<F>where
F: Sync,
impl<F> Unpin for ProgressCallback<F>where
F: Unpin,
impl<F> UnwindSafe for ProgressCallback<F>where
F: UnwindSafe,
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