Enum bincode::serde::DecodeError
source · [−]#[non_exhaustive]
pub enum DecodeError {
AnyNotSupported,
IdentifierNotSupported,
IgnoredAnyNotSupported,
CannotBorrowOwnedData,
SkipFixedArrayLengthNotSupported,
}
Available on crate feature
serde
only.Expand description
A serde-specific error that occurred while decoding.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AnyNotSupported
Bincode does not support serde’s any
decoding feature.
See the “known issues” list in the serde module for more information on this.
IdentifierNotSupported
Bincode does not support serde identifiers
IgnoredAnyNotSupported
Bincode does not support serde’s ignored_any
.
See the “known issues” list in the serde module for more information on this.
CannotBorrowOwnedData
Serde tried decoding a borrowed value from an owned reader. Use serde_decode_borrowed_from_*
instead
SkipFixedArrayLengthNotSupported
Serde does not support skipping fixed array lengths
Trait Implementations
sourceimpl Debug for DecodeError
impl Debug for DecodeError
sourceimpl Into<DecodeError> for DecodeError
impl Into<DecodeError> for DecodeError
sourcefn into(self) -> DecodeError
fn into(self) -> DecodeError
Converts this type into the (usually inferred) input type.
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more