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 ==
.impl<E> Eq for ChannelError<E>where E: Error + Send + Sync + 'static + Eq,
impl<E> StructuralEq for ChannelError<E>where E: Error + Send + Sync + 'static,
impl<E> StructuralPartialEq for ChannelError<E>where E: Error + Send + Sync + 'static,
Auto Trait Implementations§
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 + RefUnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.