pub enum TransitionOk {
Complete {
origin: TaskState,
target: TaskState,
},
NotWaiting {
trigger: Trigger,
origin: TaskState,
},
Skipped {
trigger: Trigger,
state: TaskState,
},
}Expand description
Transition success details.
Variants§
Complete
Transition completed successfully.
NotWaiting
Not waiting for transition result.
This is to prevent:
- A deadlock when executing a transition action.
- A potential infinite wait when pausing a running loop
which could be awaiting for an
nominalto complete.
Skipped
Skipping triggering event due to current state.
Trait Implementations§
Source§impl Clone for TransitionOk
impl Clone for TransitionOk
Source§fn clone(&self) -> TransitionOk
fn clone(&self) -> TransitionOk
Returns a duplicate of the value. Read more
1.0.0 · 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 TransitionOk
impl Debug for TransitionOk
Source§impl From<TransitionOk> for TransitionStatus
impl From<TransitionOk> for TransitionStatus
Source§fn from(ok: TransitionOk) -> Self
fn from(ok: TransitionOk) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransitionOk
impl PartialEq for TransitionOk
impl Copy for TransitionOk
impl Eq for TransitionOk
impl StructuralPartialEq for TransitionOk
Auto Trait Implementations§
impl Freeze for TransitionOk
impl RefUnwindSafe for TransitionOk
impl Send for TransitionOk
impl Sync for TransitionOk
impl Unpin for TransitionOk
impl UnsafeUnpin for TransitionOk
impl UnwindSafe for TransitionOk
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<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