pub enum StarTrustError {
IoError(Error),
GameStateError(String),
ParseFloatError(ParseFloatError),
ParseIntError(ParseIntError),
TryFromPrimitiveError(String),
GeneralError(String),
}
Variants§
IoError(Error)
GameStateError(String)
ParseFloatError(ParseFloatError)
ParseIntError(ParseIntError)
TryFromPrimitiveError(String)
GeneralError(String)
Trait Implementations§
Source§impl Debug for StarTrustError
impl Debug for StarTrustError
Source§impl Display for StarTrustError
impl Display for StarTrustError
Source§impl Error for StarTrustError
impl Error for StarTrustError
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<Error> for StarTrustError
impl From<Error> for StarTrustError
Source§impl From<ParseFloatError> for StarTrustError
impl From<ParseFloatError> for StarTrustError
Source§fn from(value: ParseFloatError) -> Self
fn from(value: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for StarTrustError
impl From<ParseIntError> for StarTrustError
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for StarTrustError
impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for StarTrustError
Source§fn from(value: TryFromPrimitiveError<T>) -> Self
fn from(value: TryFromPrimitiveError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StarTrustError
impl !RefUnwindSafe for StarTrustError
impl Send for StarTrustError
impl Sync for StarTrustError
impl Unpin for StarTrustError
impl !UnwindSafe for StarTrustError
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