pub struct FileWork { /* private fields */ }Expand description
A long operation the manager is running in the background right now.
Copying is the one operation that can take a while: a rename is instant whatever it moves, but
a folder of photographs is read and written byte by byte. So a copy runs as a
Task, tells how far it has come and can be stopped; everything else
still runs straight through.
Implementations§
Source§impl FileWork
impl FileWork
Sourcepub fn id(&self) -> TaskId
pub fn id(&self) -> TaskId
The task doing the work, so an application can show it in a
Tasks model of its own beside its other background work, or stop
it without going through the manager’s own button.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileWork
impl RefUnwindSafe for FileWork
impl Send for FileWork
impl Sync for FileWork
impl Unpin for FileWork
impl UnsafeUnpin for FileWork
impl UnwindSafe for FileWork
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more