pub enum ChannelError<E>where
E: ?Sized,{
Read(Arc<E>),
Ready(Arc<E>),
Write(Arc<E>),
Flush(Arc<E>),
Close(Arc<E>),
}
Expand description
Critical errors that result in a Channel disconnecting.
Variants§
Read(Arc<E>)
Could not read from the transport.
Ready(Arc<E>)
Could not ready the transport for writes.
Write(Arc<E>)
Could not write to the transport.
Flush(Arc<E>)
Could not flush the transport.
Close(Arc<E>)
Could not close the write end of the transport.
Trait Implementations§
Source§impl<E> Clone for ChannelError<E>where
E: ?Sized,
impl<E> Clone for ChannelError<E>where
E: ?Sized,
Source§impl<E> Debug for ChannelError<E>
impl<E> Debug for ChannelError<E>
Source§impl<E> Display for ChannelError<E>where
E: ?Sized,
impl<E> Display for ChannelError<E>where
E: ?Sized,
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()
Source§impl<E> PartialEq for ChannelError<E>
impl<E> PartialEq for ChannelError<E>
impl<E> Eq for ChannelError<E>
impl<E> StructuralPartialEq for ChannelError<E>where
E: ?Sized,
Auto Trait Implementations§
impl<E> Freeze for ChannelError<E>where
E: ?Sized,
impl<E> RefUnwindSafe for ChannelError<E>where
E: RefUnwindSafe + ?Sized,
impl<E> Send for ChannelError<E>
impl<E> Sync for ChannelError<E>
impl<E> Unpin for ChannelError<E>where
E: ?Sized,
impl<E> UnwindSafe for ChannelError<E>where
E: RefUnwindSafe + ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)