pub struct AsyncTask<'a> { /* private fields */ }Expand description
Validated borrowed asynchronous task snapshot.
Implementations§
Source§impl<'a> AsyncTask<'a>
impl<'a> AsyncTask<'a>
Sourcepub fn new(
parts: AsyncTaskParts<'a>,
) -> Result<Self, AsyncResourceValidationError>
pub fn new( parts: AsyncTaskParts<'a>, ) -> Result<Self, AsyncResourceValidationError>
Validates collection limits, timestamp ordering, and lifecycle coherence.
Sourcepub const fn id(&self) -> AsyncResourceId<'a>
pub const fn id(&self) -> AsyncResourceId<'a>
Returns the opaque task identifier.
Sourcepub const fn kind(&self) -> AsyncResourceText<'a>
pub const fn kind(&self) -> AsyncResourceText<'a>
Returns the provider task type.
Sourcepub const fn status(&self) -> AsyncResourceStatus
pub const fn status(&self) -> AsyncResourceStatus
Returns the normalized lifecycle status.
Sourcepub const fn link(&self) -> Option<AsyncResourceLink<'a>>
pub const fn link(&self) -> Option<AsyncResourceLink<'a>>
Returns the non-executable related-resource link.
Sourcepub const fn message(&self) -> Option<AsyncResourceText<'a>>
pub const fn message(&self) -> Option<AsyncResourceText<'a>>
Returns the optional sensitive provider task description.
Sourcepub const fn created_at(&self) -> AsyncResourceTimestamp<'a>
pub const fn created_at(&self) -> AsyncResourceTimestamp<'a>
Returns the creation timestamp.
Sourcepub const fn updated_at(&self) -> AsyncResourceTimestamp<'a>
pub const fn updated_at(&self) -> AsyncResourceTimestamp<'a>
Returns the last-update timestamp.
Sourcepub const fn started_at(&self) -> Option<AsyncResourceTimestamp<'a>>
pub const fn started_at(&self) -> Option<AsyncResourceTimestamp<'a>>
Returns the optional start timestamp.
Sourcepub const fn finished_at(&self) -> Option<AsyncResourceTimestamp<'a>>
pub const fn finished_at(&self) -> Option<AsyncResourceTimestamp<'a>>
Returns the optional completion timestamp.
Sourcepub const fn progress(&self) -> &'a [AsyncProgressStep<'a>]
pub const fn progress(&self) -> &'a [AsyncProgressStep<'a>]
Returns the provider progress steps.
Sourcepub const fn errors(&self) -> &'a [AsyncTaskError<'a>]
pub const fn errors(&self) -> &'a [AsyncTaskError<'a>]
Returns the provider task errors.
Sourcepub fn poll_disposition(&self) -> AsyncPollDisposition<'a>
pub fn poll_disposition(&self) -> AsyncPollDisposition<'a>
Classifies the snapshot without collapsing caller-intervention states.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AsyncTask<'a>
impl<'a> RefUnwindSafe for AsyncTask<'a>
impl<'a> Send for AsyncTask<'a>
impl<'a> Sync for AsyncTask<'a>
impl<'a> Unpin for AsyncTask<'a>
impl<'a> UnsafeUnpin for AsyncTask<'a>
impl<'a> UnwindSafe for AsyncTask<'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