pub enum SerializedBytesError {
Serialize(String),
Deserialize(String),
}
Variants§
Serialize(String)
somehow failed to move to bytes most likely hit a messagepack limit https://github.com/msgpack/msgpack/blob/master/spec.md#limitation
Deserialize(String)
somehow failed to restore bytes i mean, this could be anything, how do i know what’s wrong with your bytes?
Trait Implementations§
source§impl Clone for SerializedBytesError
impl Clone for SerializedBytesError
source§fn clone(&self) -> SerializedBytesError
fn clone(&self) -> SerializedBytesError
Returns a copy of the value. Read more
1.0.0 · 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 SerializedBytesError
impl Debug for SerializedBytesError
source§impl<'de> Deserialize<'de> for SerializedBytesError
impl<'de> Deserialize<'de> for SerializedBytesError
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
source§impl Display for SerializedBytesError
impl Display for SerializedBytesError
source§impl Error for SerializedBytesError
impl Error for SerializedBytesError
1.30.0 · 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 From<Infallible> for SerializedBytesError
impl From<Infallible> for SerializedBytesError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
source§impl From<SerializedBytesError> for String
impl From<SerializedBytesError> for String
source§fn from(sb: SerializedBytesError) -> Self
fn from(sb: SerializedBytesError) -> Self
Converts to this type from the input type.
source§impl Hash for SerializedBytesError
impl Hash for SerializedBytesError
source§impl Ord for SerializedBytesError
impl Ord for SerializedBytesError
source§fn cmp(&self, other: &SerializedBytesError) -> Ordering
fn cmp(&self, other: &SerializedBytesError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SerializedBytesError
impl PartialEq for SerializedBytesError
source§fn eq(&self, other: &SerializedBytesError) -> bool
fn eq(&self, other: &SerializedBytesError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SerializedBytesError
impl PartialOrd for SerializedBytesError
source§fn partial_cmp(&self, other: &SerializedBytesError) -> Option<Ordering>
fn partial_cmp(&self, other: &SerializedBytesError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SerializedBytesError
impl Serialize for SerializedBytesError
impl Eq for SerializedBytesError
impl StructuralPartialEq for SerializedBytesError
Auto Trait Implementations§
impl Freeze for SerializedBytesError
impl RefUnwindSafe for SerializedBytesError
impl Send for SerializedBytesError
impl Sync for SerializedBytesError
impl Unpin for SerializedBytesError
impl UnwindSafe for SerializedBytesError
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.