pub enum AppError {
Io(Error),
Http(Error),
Json(Error),
Zip(ZipError),
DateTime(ParseError),
Header(ToStrError),
ParseInt(ParseIntError),
MissingHeader(String),
Manifest(String),
Other(String),
TaskFailed(JoinError),
ConfigSerialization(String),
}Expand description
Represents all possible errors that can occur in the application.
Variants§
Io(Error)
Error from the IO system.
Http(Error)
Error from HTTP operations.
Json(Error)
Error from JSON parsing.
Zip(ZipError)
Error from ZIP operations.
DateTime(ParseError)
Error from date/time parsing.
Header(ToStrError)
Error from header parsing.
ParseInt(ParseIntError)
Error from parsing integers.
MissingHeader(String)
Missing header in response.
Manifest(String)
Error from manifest parsing.
Other(String)
Generic application error.
TaskFailed(JoinError)
Error when a task fails.
ConfigSerialization(String)
Error when serializing a config fails.
Trait Implementations§
Source§impl Error for AppError
impl Error for AppError
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<ParseError> for AppError
impl From<ParseError> for AppError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for AppError
impl From<ParseIntError> for AppError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ToStrError> for AppError
impl From<ToStrError> for AppError
Source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppError
impl !RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnsafeUnpin for AppError
impl !UnwindSafe for AppError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.