pub enum ErrorAndResponse {
InternalError(Error),
ResponseUnsuccessful(StatusCode, Vec<u8>),
}
Expand description
Error used by crate::ClientUnix::send_request to be able to return unsuccessful HTTP error body.
Variants§
Trait Implementations§
Source§impl Debug for ErrorAndResponse
impl Debug for ErrorAndResponse
Source§impl Display for ErrorAndResponse
impl Display for ErrorAndResponse
Source§impl Error for ErrorAndResponse
impl Error for ErrorAndResponse
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 ErrorAndResponse
impl !RefUnwindSafe for ErrorAndResponse
impl Send for ErrorAndResponse
impl Sync for ErrorAndResponse
impl Unpin for ErrorAndResponse
impl !UnwindSafe for ErrorAndResponse
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