pub enum Error {
Show 17 variants
Auth(&'static str),
Eula(String),
Serialization(Error),
Io {
message: Cow<'static, str>,
source: Error,
},
InvalidResponse(&'static str),
AnalysisFailed(Cow<'static, str>),
InvalidToken(&'static str),
InvalidSas(&'static str),
MissingHome,
Azure(Error),
CSV(Error),
Request(Error),
UrlSerialization(Error),
StatusBar(TemplateError),
TryFromIntError(TryFromIntError),
Extension(Cow<'static, str>),
Other(&'static str, String),
}
Expand description
Freta errors
Variants§
Auth(&'static str)
Authenticating to the service failed
Eula(String)
EULA error
Serialization(Error)
Data structure serialization failures
Io
IO Errors
InvalidResponse(&'static str)
The service responded in an unexpected fashion
AnalysisFailed(Cow<'static, str>)
Analysis of the image failed
InvalidToken(&'static str)
Invalid OAuth2 authentication token
InvalidSas(&'static str)
Invalid SAS token
MissingHome
Unable to find the user’s home directory
Azure(Error)
There was an error interacting with an Azure service
CSV(Error)
There was an error serializing to CSV
Request(Error)
HTTP error
UrlSerialization(Error)
Error serializing URL parameters
StatusBar(TemplateError)
Error generating the status bar
TryFromIntError(TryFromIntError)
Data conversion errors
Extension(Cow<'static, str>)
Error converting a value into a known file extension
Other(&'static str, String)
Otherwise unspecified error
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<TemplateError> for Error
impl From<TemplateError> for Error
source§fn from(source: TemplateError) -> Self
fn from(source: TemplateError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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