Struct hyper_util::client::legacy::Error
source · pub struct Error { /* private fields */ }
Expand description
Client errors
Implementations§
source§impl Error
impl Error
sourcepub fn is_connect(&self) -> bool
pub fn is_connect(&self) -> bool
Returns true if this was an error from Connect
.
sourcepub fn connect_info(&self) -> Option<&Connected>
pub fn connect_info(&self) -> Option<&Connected>
Returns the info of the client connection on which this error occurred.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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