Struct hyper::client::conn::TrySendError
source · pub struct TrySendError<T> { /* private fields */ }
Expand description
An error when calling try_send_request
.
There is a possibility of an error occuring on a connection in-between the time that a request is queued and when it is actually written to the IO transport. If that happens, it is safe to return the request back to the caller, as it was never fully sent.
Implementations§
source§impl<T> TrySendError<T>
impl<T> TrySendError<T>
sourcepub fn take_message(&mut self) -> Option<T>
pub fn take_message(&mut self) -> Option<T>
Take the message from this error.
The message will not always have been recovered. If an error occurs after the message has been serialized onto the connection, it will not be available here.
sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Consumes this to return the inner error.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TrySendError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for TrySendError<T>
impl<T> Send for TrySendError<T>where
T: Send,
impl<T> Sync for TrySendError<T>where
T: Sync,
impl<T> Unpin for TrySendError<T>where
T: Unpin,
impl<T> !UnwindSafe for TrySendError<T>
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