Enum tinify::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()