Enum tinify::error::TinifyError
source · pub enum TinifyError {
ClientError,
ServerError,
ReadError {
source: Error,
},
WriteError {
source: Error,
},
IOError(Error),
ReqwestError(Error),
}Expand description
The Tinify API uses HTTP status codes to indicate success or failure.
Status codes in the 4xx range indicate there was a problem with Client request.
Status codes in the 5xx indicate a temporary problem with the Tinify API Server.
Variants§
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
Auto Trait Implementations§
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