pub enum CoreErrorKind {
MalformedMessage,
UnsupportedMessageType,
UnsupportedProtocolGeneration,
InvalidFlags,
InvalidPayload,
InvalidSession,
}Expand description
Machine-readable core.error categories.
Variants§
MalformedMessage
The protocol message envelope could not be decoded.
UnsupportedMessageType
The message type is unknown to the peer.
UnsupportedProtocolGeneration
The message requires a newer protocol generation than the peer supports.
InvalidFlags
The frame flags do not match the message type.
InvalidPayload
The message payload could not be decoded or failed validation.
InvalidSession
The message refers to an unknown, closed, or incompatible session.
Trait Implementations§
Source§impl Clone for CoreErrorKind
impl Clone for CoreErrorKind
Source§fn clone(&self) -> CoreErrorKind
fn clone(&self) -> CoreErrorKind
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 moreimpl Copy for CoreErrorKind
Source§impl Debug for CoreErrorKind
impl Debug for CoreErrorKind
Source§impl<'de> Deserialize<'de> for CoreErrorKind
impl<'de> Deserialize<'de> for CoreErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CoreErrorKind
Source§impl PartialEq for CoreErrorKind
impl PartialEq for CoreErrorKind
Source§fn eq(&self, other: &CoreErrorKind) -> bool
fn eq(&self, other: &CoreErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CoreErrorKind
impl Serialize for CoreErrorKind
impl StructuralPartialEq for CoreErrorKind
Auto Trait Implementations§
impl Freeze for CoreErrorKind
impl RefUnwindSafe for CoreErrorKind
impl Send for CoreErrorKind
impl Sync for CoreErrorKind
impl Unpin for CoreErrorKind
impl UnsafeUnpin for CoreErrorKind
impl UnwindSafe for CoreErrorKind
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