Struct TrySendError
pub struct TrySendError<T> { /* private fields */ }
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
impl<T> TrySendError<T>
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.
fn message(&self) -> Option<&T>Returns a reference to the recovered message.
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.
fn into_error(self) -> ErrorConsumes this to return the inner error.
fn error(&self) -> &ErrorReturns a reference to the inner error.
Trait Implementations
impl<T: Debug> Debug for TrySendError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T> !RefUnwindSafe for TrySendError<T>
impl<T> !UnwindSafe for TrySendError<T>
impl<T> Freeze for TrySendError<T>
where
Option<T>: Freeze,
impl<T> Send for TrySendError<T>
where
Option<T>: Send,
impl<T> Sync for TrySendError<T>
where
Option<T>: Sync,
impl<T> Unpin for TrySendError<T>
where
Option<T>: Unpin,
impl<T> UnsafeUnpin for TrySendError<T>
where
Option<T>: UnsafeUnpin,
Blanket Implementations
impl<T> Any for TrySendError<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TrySendError<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TrySendError<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for TrySendError<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for TrySendError<T>
impl<T> WithSubscriber for TrySendError<T>
impl<T, U> Into<U> for TrySendError<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TrySendError<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TrySendError<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>