#[non_exhaustive]pub enum InputLifecycleError {
InvalidTransition {
from: InputLifecycleState,
input: String,
},
TerminalState {
state: InputLifecycleState,
},
GuardFailed {
from: InputLifecycleState,
guard: String,
},
}Expand description
Errors from the input lifecycle authority.
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.
InvalidTransition
The transition is not valid from the current state.
TerminalState
The input is already in a terminal state.
Fields
§
state: InputLifecycleStateGuardFailed
A guard condition was not met.
Trait Implementations§
Source§impl Clone for InputLifecycleError
impl Clone for InputLifecycleError
Source§fn clone(&self) -> InputLifecycleError
fn clone(&self) -> InputLifecycleError
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 InputLifecycleError
impl Debug for InputLifecycleError
Source§impl Display for InputLifecycleError
impl Display for InputLifecycleError
Source§impl Error for InputLifecycleError
impl Error for InputLifecycleError
1.30.0 · 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 InputLifecycleError
impl RefUnwindSafe for InputLifecycleError
impl Send for InputLifecycleError
impl Sync for InputLifecycleError
impl Unpin for InputLifecycleError
impl UnsafeUnpin for InputLifecycleError
impl UnwindSafe for InputLifecycleError
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