#[non_exhaustive]pub enum StatusMachineError {
Transition(StatusTransitionError),
Ownership(OwnershipError),
}Expand description
Combined error type for the state machine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transition(StatusTransitionError)
Ownership(OwnershipError)
Trait Implementations§
Source§impl Clone for StatusMachineError
impl Clone for StatusMachineError
Source§fn clone(&self) -> StatusMachineError
fn clone(&self) -> StatusMachineError
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 StatusMachineError
impl Debug for StatusMachineError
Source§impl Display for StatusMachineError
impl Display for StatusMachineError
Source§impl Error for StatusMachineError
impl Error for StatusMachineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StatusMachineError
impl RefUnwindSafe for StatusMachineError
impl Send for StatusMachineError
impl Sync for StatusMachineError
impl Unpin for StatusMachineError
impl UnsafeUnpin for StatusMachineError
impl UnwindSafe for StatusMachineError
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