pub enum TextSendError<E> {
Encode(EncodeError),
Transport(E),
}Expand description
Error returned when sending a text payload through a transport wrapper.
Variants§
Encode(EncodeError)
Text-payload encoding failed before the transport was called.
Transport(E)
The underlying transport send failed.
Trait Implementations§
Source§impl<E: Clone> Clone for TextSendError<E>
impl<E: Clone> Clone for TextSendError<E>
Source§fn clone(&self) -> TextSendError<E>
fn clone(&self) -> TextSendError<E>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for TextSendError<E>
impl<E: Debug> Debug for TextSendError<E>
Source§impl<E> Display for TextSendError<E>where
E: Debug,
impl<E> Display for TextSendError<E>where
E: Debug,
Source§impl<E> Error for TextSendError<E>
Available on crate feature std only.
impl<E> Error for TextSendError<E>
Available on crate feature
std only.1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E> From<EncodeError> for TextSendError<E>
impl<E> From<EncodeError> for TextSendError<E>
Source§fn from(value: EncodeError) -> Self
fn from(value: EncodeError) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for TextSendError<E>
impl<E: PartialEq> PartialEq for TextSendError<E>
impl<E: Eq> Eq for TextSendError<E>
impl<E> StructuralPartialEq for TextSendError<E>
Auto Trait Implementations§
impl<E> Freeze for TextSendError<E>where
E: Freeze,
impl<E> RefUnwindSafe for TextSendError<E>where
E: RefUnwindSafe,
impl<E> Send for TextSendError<E>where
E: Send,
impl<E> Sync for TextSendError<E>where
E: Sync,
impl<E> Unpin for TextSendError<E>where
E: Unpin,
impl<E> UnwindSafe for TextSendError<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)