pub enum BincodeError {
EncodeError(EncodeError),
DecodeError(DecodeError),
}Available on crate feature
bincode only.Expand description
An error that can occur while using Bincode.
Variants§
EncodeError(EncodeError)
An error occurred while encoding.
DecodeError(DecodeError)
An error occurred while decoding.
Trait Implementations§
Source§impl Debug for BincodeError
impl Debug for BincodeError
Source§impl Display for BincodeError
impl Display for BincodeError
Source§impl Error for BincodeError
impl Error for BincodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DecodeError> for BincodeError
impl From<DecodeError> for BincodeError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for BincodeError
impl From<EncodeError> for BincodeError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BincodeError
impl !RefUnwindSafe for BincodeError
impl Send for BincodeError
impl Sync for BincodeError
impl Unpin for BincodeError
impl !UnwindSafe for BincodeError
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