pub struct DurableRunStatus(/* private fields */);Expand description
Durable run status composed from admission state and the shared runtime lifecycle.
Implementations§
Source§impl DurableRunStatus
impl DurableRunStatus
Sourcepub const fn lifecycle(self) -> Option<RunLifecycle>
pub const fn lifecycle(self) -> Option<RunLifecycle>
Return the admitted runtime lifecycle, or None while queued.
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Return whether the run reached a terminal lifecycle.
Trait Implementations§
Source§impl Clone for DurableRunStatus
impl Clone for DurableRunStatus
Source§fn clone(&self) -> DurableRunStatus
fn clone(&self) -> DurableRunStatus
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 moreimpl Copy for DurableRunStatus
Source§impl Debug for DurableRunStatus
impl Debug for DurableRunStatus
Source§impl Default for DurableRunStatus
impl Default for DurableRunStatus
Source§fn default() -> DurableRunStatus
fn default() -> DurableRunStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DurableRunStatus
impl<'de> Deserialize<'de> for DurableRunStatus
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DurableRunStatus
Source§impl From<RunLifecycle> for DurableRunStatus
impl From<RunLifecycle> for DurableRunStatus
Source§fn from(value: RunLifecycle) -> Self
fn from(value: RunLifecycle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DurableRunStatus
impl PartialEq for DurableRunStatus
Source§impl Serialize for DurableRunStatus
impl Serialize for DurableRunStatus
impl StructuralPartialEq for DurableRunStatus
Source§impl TryFrom<DurableRunStatus> for RunLifecycle
impl TryFrom<DurableRunStatus> for RunLifecycle
Source§type Error = QueuedRunStatus
type Error = QueuedRunStatus
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DurableRunStatus
impl RefUnwindSafe for DurableRunStatus
impl Send for DurableRunStatus
impl Sync for DurableRunStatus
impl Unpin for DurableRunStatus
impl UnsafeUnpin for DurableRunStatus
impl UnwindSafe for DurableRunStatus
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