Enum tinify::error::TinifyError
source · pub enum TinifyError {
ClientError {
upstream: Upstream,
},
ServerError {
upstream: Upstream,
},
ReqwestError(Error),
ReqwestConvertError(ToStrError),
UrlParseError(ParseError),
JsonParseError(Error),
IOError(Error),
}Expand description
The TinifyError enum indicates whether a client or server error occurs.
Variants§
ClientError
ServerError
ReqwestError(Error)
ReqwestConvertError(ToStrError)
UrlParseError(ParseError)
JsonParseError(Error)
IOError(Error)
Trait Implementations§
source§impl Debug for TinifyError
impl Debug for TinifyError
source§impl Display for TinifyError
impl Display for TinifyError
source§impl Error for TinifyError
impl Error for TinifyError
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<Error> for TinifyError
impl From<Error> for TinifyError
source§impl From<Error> for TinifyError
impl From<Error> for TinifyError
source§impl From<Error> for TinifyError
impl From<Error> for TinifyError
source§impl From<ParseError> for TinifyError
impl From<ParseError> for TinifyError
source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ToStrError> for TinifyError
impl From<ToStrError> for TinifyError
source§fn from(err: ToStrError) -> Self
fn from(err: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TinifyError
impl !RefUnwindSafe for TinifyError
impl Send for TinifyError
impl Sync for TinifyError
impl Unpin for TinifyError
impl !UnwindSafe for TinifyError
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