Enum lucas_test::api::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 23 variants
Command(String),
Extract(String),
Path(String),
PathPrefix(StripPrefixError),
Dialog(String),
DialogCancelled,
Network(Error),
HttpMethod(InvalidMethod),
HttpHeader(InvalidHeaderName),
Utf8(FromUtf8Error),
InvalidHttpForm,
Semver(Error),
Json(Error),
Bincode(Box<ErrorKind>),
Io(Error),
Ignore(Error),
Zip(ZipError),
Notification(Error),
Url(ParseError),
FailedToDetectPlatform(String),
ParseCliArguments(String),
Shell(String),
UnknownProgramName(String),
}Expand description
The error types.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Command(String)
Command error.
Extract(String)
The extract archive error.
Path(String)
The path operation error.
PathPrefix(StripPrefixError)
The path StripPrefixError error.
Dialog(String)
Error showing the dialog.
DialogCancelled
The dialog operation was cancelled by the user.
Network(Error)
The network error.
HttpMethod(InvalidMethod)
HTTP method error.
HttpHeader(InvalidHeaderName)
Invalid HTTP header value.
Utf8(FromUtf8Error)
Failed to serialize header value as string.
InvalidHttpForm
HTTP form to must be an object.
Semver(Error)
Semver error.
Json(Error)
JSON error.
Bincode(Box<ErrorKind>)
Bincode error.
Io(Error)
IO error.
Ignore(Error)
Ignore error.
Zip(ZipError)
ZIP error.
Notification(Error)
Notification error.
Url(ParseError)
Url error.
FailedToDetectPlatform(String)
failed to detect the current platform.
ParseCliArguments(String)
cli only.CLI argument parsing error.
Shell(String)
Shell error.
UnknownProgramName(String)
Unknown program name.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Performs the conversion.
sourceimpl From<InvalidHeaderName> for Error
impl From<InvalidHeaderName> for Error
sourcefn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Performs the conversion.
sourceimpl From<InvalidMethod> for Error
impl From<InvalidMethod> for Error
sourcefn from(source: InvalidMethod) -> Self
fn from(source: InvalidMethod) -> Self
Performs the conversion.
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Performs the conversion.
sourceimpl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
sourcefn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more