#[non_exhaustive]pub enum ChannelErrorKind {
Open,
Request,
Read,
Write,
Eof,
Close,
Protocol,
}Expand description
Channel failure category.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open
Channel open failed.
Request
Channel request failed.
Read
Channel read failed.
Write
Channel write failed.
Eof
Unexpected EOF.
Close
Channel close failed or arrived unexpectedly.
Protocol
Protocol ordering or framing was invalid for the high-level API.
Trait Implementations§
Source§impl Clone for ChannelErrorKind
impl Clone for ChannelErrorKind
Source§fn clone(&self) -> ChannelErrorKind
fn clone(&self) -> ChannelErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelErrorKind
impl Debug for ChannelErrorKind
Source§impl Hash for ChannelErrorKind
impl Hash for ChannelErrorKind
Source§impl PartialEq for ChannelErrorKind
impl PartialEq for ChannelErrorKind
Source§fn eq(&self, other: &ChannelErrorKind) -> bool
fn eq(&self, other: &ChannelErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChannelErrorKind
impl Eq for ChannelErrorKind
impl StructuralPartialEq for ChannelErrorKind
Auto Trait Implementations§
impl Freeze for ChannelErrorKind
impl RefUnwindSafe for ChannelErrorKind
impl Send for ChannelErrorKind
impl Sync for ChannelErrorKind
impl Unpin for ChannelErrorKind
impl UnsafeUnpin for ChannelErrorKind
impl UnwindSafe for ChannelErrorKind
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