pub enum ChannelError<E>{
Transport(E),
Timer(Error),
}Expand description
Critical errors that result in a Channel disconnecting.
Variants§
Transport(E)
An error occurred reading from, or writing to, the transport.
Timer(Error)
An error occurred while polling expired requests.
Trait Implementations§
Source§impl<E> Debug for ChannelError<E>
impl<E> Debug for ChannelError<E>
Source§impl<E> Display for ChannelError<E>
impl<E> Display for ChannelError<E>
Source§impl<E> Error for ChannelError<E>
impl<E> Error for ChannelError<E>
Source§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 · 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<E> Freeze for ChannelError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ChannelError<E>where
E: RefUnwindSafe,
impl<E> Send for ChannelError<E>
impl<E> Sync for ChannelError<E>
impl<E> Unpin for ChannelError<E>where
E: Unpin,
impl<E> UnwindSafe for ChannelError<E>where
E: UnwindSafe,
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