Enum bincode::serde::DecodeError
source · [−]#[non_exhaustive]
pub enum DecodeError {
AnyNotSupported,
IdentifierNotSupported,
IgnoredAnyNotSupported,
CannotBorrowOwnedData,
}This is supported on crate feature
serde only.Expand description
A serde-specific error that occured 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
IdentifierNotSupported
Bincode does not support serde identifiers
IgnoredAnyNotSupported
Bincode does not support serde’s ignored_any
CannotBorrowOwnedData
Serde tried decoding a borrowed value from an owned reader. Use serde_decode_borrowed_from_* instead
Trait Implementations
Performs the conversion.