pub struct ActivityTask { /* private fields */ }Expand description
Non-clone task-local handle for lifecycle-only work.
Activities deliberately expose no iteration or target operations. Dropping an active handle marks only its reporting task failed.
Implementations§
Source§impl ActivityTask
impl ActivityTask
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Reports whether the owning reporter requested cooperative termination.
Sourcepub fn identity(&self) -> &TaskIdentity
pub fn identity(&self) -> &TaskIdentity
Borrows the task identity supplied by the owning phase.
Sourcepub fn status(&self) -> TaskStatus
pub fn status(&self) -> TaskStatus
Returns the current lifecycle status.
Sourcepub fn set_detail(&self, detail: impl Into<String>)
pub fn set_detail(&self, detail: impl Into<String>)
Updates one infrequent human-readable execution detail.
Trait Implementations§
Source§impl Debug for ActivityTask
impl Debug for ActivityTask
Source§impl Drop for ActivityTask
impl Drop for ActivityTask
Auto Trait Implementations§
impl Freeze for ActivityTask
impl RefUnwindSafe for ActivityTask
impl Send for ActivityTask
impl Sync for ActivityTask
impl Unpin for ActivityTask
impl UnsafeUnpin for ActivityTask
impl UnwindSafe for ActivityTask
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