Enum vaporetto::errors::VaporettoError
source · pub enum VaporettoError {
InvalidModel(InvalidModelError),
InvalidArgument(InvalidArgumentError),
UTF8Error(FromUtf8Error),
CastError(TryFromIntError),
DecodeError(DecodeError),
EncodeError(EncodeError),
IOError(Error),
}
Expand description
The error type for Vaporetto.
Variants§
InvalidModel(InvalidModelError)
The error variant for InvalidModelError
.
InvalidArgument(InvalidArgumentError)
The error variant for InvalidArgumentError
.
UTF8Error(FromUtf8Error)
The error variant for FromUtf8Error
.
CastError(TryFromIntError)
The error variant for TryFromIntError
.
DecodeError(DecodeError)
The error variant for DecodeError
.
EncodeError(EncodeError)
The error variant for EncodeError
.
IOError(Error)
Available on crate feature
std
only.The error variant for std::io::Error
.
Trait Implementations§
source§impl Debug for VaporettoError
impl Debug for VaporettoError
source§impl Display for VaporettoError
impl Display for VaporettoError
source§impl Error for VaporettoError
impl Error for VaporettoError
1.30.0 · 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<DecodeError> for VaporettoError
impl From<DecodeError> for VaporettoError
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<EncodeError> for VaporettoError
impl From<EncodeError> for VaporettoError
source§fn from(error: EncodeError) -> Self
fn from(error: EncodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for VaporettoError
impl From<Error> for VaporettoError
source§impl From<FromUtf8Error> for VaporettoError
impl From<FromUtf8Error> for VaporettoError
source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for VaporettoError
impl From<TryFromIntError> for VaporettoError
source§fn from(error: TryFromIntError) -> Self
fn from(error: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VaporettoError
impl Send for VaporettoError
impl Sync for VaporettoError
impl Unpin for VaporettoError
impl !UnwindSafe for VaporettoError
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere T: Fail,
§impl<E> Fail for Ewhere
E: Error + Send + Sync + 'static,
impl<E> Fail for Ewhere E: Error + Send + Sync + 'static,
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more