pub enum GeneralError {
ParseError(String),
InvalidInput,
NonSpecificError(String),
}
Expand description
Listing of some general re-usable errors
Variants§
Trait Implementations§
Source§impl Debug for GeneralError
impl Debug for GeneralError
Source§impl<'de> Deserialize<'de> for GeneralError
impl<'de> Deserialize<'de> for GeneralError
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 GeneralError
impl Display for GeneralError
Source§impl Error for GeneralError
impl Error for GeneralError
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 GeneralError
impl PartialEq for GeneralError
Source§impl Serialize for GeneralError
impl Serialize for GeneralError
impl StructuralPartialEq for GeneralError
Auto Trait Implementations§
impl Freeze for GeneralError
impl RefUnwindSafe for GeneralError
impl Send for GeneralError
impl Sync for GeneralError
impl Unpin for GeneralError
impl UnwindSafe for GeneralError
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