pub struct OperatorOutcome { /* private fields */ }Expand description
The result of one guarded operator call.
Implementations§
Source§impl OperatorOutcome
impl OperatorOutcome
Sourcepub const fn class(&self) -> OperatorOutcomeClass
pub const fn class(&self) -> OperatorOutcomeClass
Returns whether the effect was applied, replayed, or rejected.
Sourcepub const fn record(&self) -> &OperatorRecord
pub const fn record(&self) -> &OperatorRecord
Borrows the durable audit record of this operation identifier.
Sourcepub const fn execution(&self) -> Option<&JobExecution>
pub const fn execution(&self) -> Option<&JobExecution>
Borrows the resulting execution snapshot, when the call produced one.
A replay returns the recorded outcome without re-reading the execution.
Sourcepub const fn rejection(&self) -> Option<OperatorRejection>
pub const fn rejection(&self) -> Option<OperatorRejection>
Returns the rejection class, when a guard rejected the action.
Sourcepub const fn changed_state(&self) -> bool
pub const fn changed_state(&self) -> bool
Returns whether this call changed durable state.
A repeated stop or abandon succeeds and changes nothing.
Trait Implementations§
Source§impl Clone for OperatorOutcome
impl Clone for OperatorOutcome
Source§fn clone(&self) -> OperatorOutcome
fn clone(&self) -> OperatorOutcome
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 moreSource§impl Debug for OperatorOutcome
impl Debug for OperatorOutcome
impl Eq for OperatorOutcome
Source§impl PartialEq for OperatorOutcome
impl PartialEq for OperatorOutcome
impl StructuralPartialEq for OperatorOutcome
Auto Trait Implementations§
impl Freeze for OperatorOutcome
impl RefUnwindSafe for OperatorOutcome
impl Send for OperatorOutcome
impl Sync for OperatorOutcome
impl Unpin for OperatorOutcome
impl UnsafeUnpin for OperatorOutcome
impl UnwindSafe for OperatorOutcome
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