pub enum StateParseError {
ParseIntError(ParseIntError),
InvalidValue(u32),
}Expand description
Errors when parsing a string as a State.
Variants§
ParseIntError(ParseIntError)
The string could not be parsed as a u32.
InvalidValue(u32)
The value is not recognized as a valid State.
Trait Implementations§
Source§impl Clone for StateParseError
impl Clone for StateParseError
Source§fn clone(&self) -> StateParseError
fn clone(&self) -> StateParseError
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 StateParseError
impl Debug for StateParseError
Source§impl Display for StateParseError
impl Display for StateParseError
Source§impl Error for StateParseError
impl Error for StateParseError
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 PartialEq for StateParseError
impl PartialEq for StateParseError
impl Eq for StateParseError
impl StructuralPartialEq for StateParseError
Auto Trait Implementations§
impl Freeze for StateParseError
impl RefUnwindSafe for StateParseError
impl Send for StateParseError
impl Sync for StateParseError
impl Unpin for StateParseError
impl UnwindSafe for StateParseError
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