Enum cynic::http::CynicReqwestError
source · pub enum CynicReqwestError {
ReqwestError(Error),
ErrorResponse(StatusCode, String),
}
Expand description
The error type returned by ReqwestExt
& ReqwestBlockingExt
Variants§
ReqwestError(Error)
An error from reqwest when making an HTTP request.
ErrorResponse(StatusCode, String)
An error response from the server with the given status code and body.
Trait Implementations§
source§impl Debug for CynicReqwestError
impl Debug for CynicReqwestError
source§impl Display for CynicReqwestError
impl Display for CynicReqwestError
source§impl Error for CynicReqwestError
impl Error for CynicReqwestError
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()
Auto Trait Implementations§
impl Freeze for CynicReqwestError
impl !RefUnwindSafe for CynicReqwestError
impl Send for CynicReqwestError
impl Sync for CynicReqwestError
impl Unpin for CynicReqwestError
impl !UnwindSafe for CynicReqwestError
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