pub struct LifecycleTransition { /* private fields */ }Expand description
A requested framework lifecycle transition and its deterministic timestamp.
Implementations§
Source§impl LifecycleTransition
impl LifecycleTransition
Sourcepub const fn new(
target: BatchStatus,
transitioned_at: SystemTime,
) -> LifecycleTransition
pub const fn new( target: BatchStatus, transitioned_at: SystemTime, ) -> LifecycleTransition
Requests a transition that does not introduce a failure.
Sourcepub const fn failed(
transitioned_at: SystemTime,
failure: FailureSummary,
) -> LifecycleTransition
pub const fn failed( transitioned_at: SystemTime, failure: FailureSummary, ) -> LifecycleTransition
Requests a transition to FAILED with a redacted failure summary.
Sourcepub const fn target(self) -> BatchStatus
pub const fn target(self) -> BatchStatus
Returns the requested framework status.
Sourcepub const fn transitioned_at(self) -> SystemTime
pub const fn transitioned_at(self) -> SystemTime
Returns the deterministic transition instant supplied by the caller.
Sourcepub const fn with_terminal_rollback(self) -> LifecycleTransition
pub const fn with_terminal_rollback(self) -> LifecycleTransition
Marks the transition as one whose terminal work was rolled back.
Trait Implementations§
Source§impl Clone for LifecycleTransition
impl Clone for LifecycleTransition
Source§fn clone(&self) -> LifecycleTransition
fn clone(&self) -> LifecycleTransition
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 LifecycleTransition
Source§impl Debug for LifecycleTransition
impl Debug for LifecycleTransition
impl Eq for LifecycleTransition
Source§impl PartialEq for LifecycleTransition
impl PartialEq for LifecycleTransition
impl StructuralPartialEq for LifecycleTransition
Auto Trait Implementations§
impl Freeze for LifecycleTransition
impl RefUnwindSafe for LifecycleTransition
impl Send for LifecycleTransition
impl Sync for LifecycleTransition
impl Unpin for LifecycleTransition
impl UnsafeUnpin for LifecycleTransition
impl UnwindSafe for LifecycleTransition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more