pub struct TrySendError<T> { /* private fields */ }
Available on crate feature
client
and (crate features http1
or http2
) only.Expand description
An error when calling try_send_request
.
There is a possibility of an error occurring 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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.