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§
Source§impl Clone for TaskControl
impl Clone for TaskControl
Source§fn clone(&self) -> TaskControl
fn clone(&self) -> TaskControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.