pub enum StateError {
InvalidState(String),
StateNotFound,
}Variants§
Implementations§
Source§impl StateError
impl StateError
Sourcepub const fn is_invalid_state(&self) -> bool
pub const fn is_invalid_state(&self) -> bool
Returns true if the enum is StateError::InvalidState otherwise false
Sourcepub const fn is_state_not_found(&self) -> bool
pub const fn is_state_not_found(&self) -> bool
Returns true if the enum is StateError::StateNotFound otherwise false
Trait Implementations§
Source§impl Clone for StateError
impl Clone for StateError
Source§fn clone(&self) -> StateError
fn clone(&self) -> StateError
Returns a copy 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 StateError
impl Debug for StateError
Source§impl<'de> Deserialize<'de> for StateError
impl<'de> Deserialize<'de> for StateError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StateError
impl Display for StateError
Source§impl Error for StateError
impl Error for StateError
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()
Source§impl From<StateError> for Error
impl From<StateError> for Error
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Source§impl Hash for StateError
impl Hash for StateError
Source§impl Ord for StateError
impl Ord for StateError
Source§fn cmp(&self, other: &StateError) -> Ordering
fn cmp(&self, other: &StateError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StateError
impl PartialEq for StateError
Source§impl PartialOrd for StateError
impl PartialOrd for StateError
Source§impl Serialize for StateError
impl Serialize for StateError
impl Eq for StateError
impl StructuralPartialEq for StateError
Auto Trait Implementations§
impl Freeze for StateError
impl RefUnwindSafe for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl UnwindSafe for StateError
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