Enum casper_types::bytesrepr::Error
source · #[non_exhaustive]#[repr(u8)]pub enum Error {
EarlyEndOfStream = 0,
Formatting = 1,
LeftOverBytes = 2,
OutOfMemory = 3,
NotRepresentable = 4,
ExceededRecursionDepth = 5,
}
Expand description
Serialization and deserialization errors.
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.
EarlyEndOfStream = 0
Early end of stream while deserializing.
Formatting = 1
Formatting error while deserializing.
LeftOverBytes = 2
Not all input bytes were consumed in deserialize
.
OutOfMemory = 3
Out of memory error.
NotRepresentable = 4
No serialized representation is available for a value.
ExceededRecursionDepth = 5
Exceeded a recursion depth limit.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 From<Error> for CLValueError
impl From<Error> for CLValueError
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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