pub struct TaskControl { /* private fields */ }Expand description
UI-owned task control; dropping it does not detach work from its scope.
Implementations§
Source§impl TaskControl
impl TaskControl
pub fn cancel(&self)
pub fn status(&self) -> TaskStatus
Sourcepub fn status_property(&self) -> Published<TaskStatus>
pub fn status_property(&self) -> Published<TaskStatus>
A snapshot property for reactive status displays; applications should not mutate this adapter-owned state.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskControl
impl !Send for TaskControl
impl !Sync for TaskControl
impl !UnwindSafe for TaskControl
impl Freeze for TaskControl
impl Unpin for TaskControl
impl UnsafeUnpin for TaskControl
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.