pub enum SerErrorKind {
InvalidData,
InvalidType,
Buffer,
NoBuffersAvailable,
NoClone,
ThirdParty,
Unknown,
}Expand description
Stable categories for serialisation and deserialisation failures.
Variants§
InvalidData
The data was invalid, corrupted, or otherwise not as expected.
InvalidType
The data represents the wrong type, or an unknown type.
Buffer
The buffer used for serialisation failed.
NoBuffersAvailable
No buffer was available.
Raised by actors attempting to send more messages than their buffers allow or what the network is able to handle.
NoClone
The type can not be cloned.
ThirdParty
An error forwarded from a third-party crate.
Unknown
Any other kind of serialisation error.
Trait Implementations§
Source§impl Clone for SerErrorKind
impl Clone for SerErrorKind
Source§fn clone(&self) -> SerErrorKind
fn clone(&self) -> SerErrorKind
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 SerErrorKind
impl Debug for SerErrorKind
Source§impl Hash for SerErrorKind
impl Hash for SerErrorKind
Source§impl PartialEq for SerErrorKind
impl PartialEq for SerErrorKind
Source§fn eq(&self, other: &SerErrorKind) -> bool
fn eq(&self, other: &SerErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SerErrorKind
impl Eq for SerErrorKind
impl StructuralPartialEq for SerErrorKind
Auto Trait Implementations§
impl Freeze for SerErrorKind
impl RefUnwindSafe for SerErrorKind
impl Send for SerErrorKind
impl Sync for SerErrorKind
impl Unpin for SerErrorKind
impl UnsafeUnpin for SerErrorKind
impl UnwindSafe for SerErrorKind
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§impl<T> DispatchEvent for T
impl<T> DispatchEvent for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.