pub struct CopyControl<'a> {
pub progress: Option<&'a dyn Fn(u64)>,
pub cancel: Option<&'a AtomicBool>,
}Fields§
§progress: Option<&'a dyn Fn(u64)>Called with the bytes copied so far.
cancel: Option<&'a AtomicBool>Checked between chunks and entries; the partial copy is removed.
Trait Implementations§
Source§impl<'a> Default for CopyControl<'a>
impl<'a> Default for CopyControl<'a>
Source§fn default() -> CopyControl<'a>
fn default() -> CopyControl<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CopyControl<'a>
impl<'a> !Send for CopyControl<'a>
impl<'a> !Sync for CopyControl<'a>
impl<'a> !UnwindSafe for CopyControl<'a>
impl<'a> Freeze for CopyControl<'a>
impl<'a> Unpin for CopyControl<'a>
impl<'a> UnsafeUnpin for CopyControl<'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