Enum tarpc::ChannelError
source · pub enum ChannelError<E>where
E: Error + Send + Sync + 'static,{
Read(Arc<E>),
Ready(E),
Write(E),
Flush(E),
Close(E),
}
Expand description
Critical errors that result in a Channel disconnecting.
Variants§
Read(Arc<E>)
Could not read from the transport.
Ready(E)
Could not ready the transport for writes.
Write(E)
Could not write to the transport.
Flush(E)
Could not flush the transport.
Close(E)
Could not close the write end of the transport.
Trait Implementations§
source§impl<E> Error for ChannelError<E>where
E: Error + Send + Sync + 'static + Error,
Arc<E>: Error + 'static,
Self: Debug + Display,
impl<E> Error for ChannelError<E>where E: Error + Send + Sync + 'static + Error, Arc<E>: Error + 'static, Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ChannelError<E>> for ChannelError<E>where
E: Error + Send + Sync + 'static + PartialEq,
impl<E> PartialEq<ChannelError<E>> for ChannelError<E>where E: Error + Send + Sync + 'static + PartialEq,
source§fn eq(&self, other: &ChannelError<E>) -> bool
fn eq(&self, other: &ChannelError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.