pub enum SerializationError {
MissingInfo(String),
TooFewBytes(usize),
InvalidFormat(String),
CounterOverflow,
AuthenticationFailed,
DecryptionFailed,
}
Expand description
Error that can occur when serializing or deserializing data
§Variants
MissingInfo
- More information is needed to deserialize the data. Might indicate that SerializationInfo is missingTooFewBytes
- The data is too short to be deserialized (like, the size is 4 but there are just 2 bytes)InvalidFormat
- The data format is incorrectCounterOverflow
- The client or server counter overflowed (which means a connection should be reset)AuthenticationFailed
- The authentication failed (MAC is incorrect, key is wrong or the bucket key is missing)DecryptionFailed
- The decryption failed (key is wrong or the bucket key is missing)
Variants§
MissingInfo(String)
TooFewBytes(usize)
InvalidFormat(String)
CounterOverflow
AuthenticationFailed
DecryptionFailed
Trait Implementations§
Source§impl Debug for SerializationError
impl Debug for SerializationError
Source§impl PartialEq for SerializationError
impl PartialEq for SerializationError
impl Eq for SerializationError
impl StructuralPartialEq for SerializationError
Auto Trait Implementations§
impl Freeze for SerializationError
impl RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl UnwindSafe for SerializationError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more