pub enum ErrorType {
    ParseError,
    ThirdPartyError,
    MissingConfig,
    UnknownError,
    InternalError,
    TimeoutError,
    IoError,
    NotFound,
    InvalidInput,
}Expand description
This enum is used to categorize errors that occur in the application and provide a consistent way to handle and report errors. Each error type has a corresponding message that can be used.
Variants§
ParseError
ThirdPartyError
MissingConfig
UnknownError
InternalError
TimeoutError
IoError
NotFound
InvalidInput
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorType
 
impl<'de> Deserialize<'de> for ErrorType
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 Ord for ErrorType
 
impl Ord for ErrorType
Source§impl PartialOrd for ErrorType
 
impl PartialOrd for ErrorType
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.