pub enum Error {
KeySerializationError,
NoNodesLeft,
TooBig,
TooSmall,
ValueSerializationError,
WrongKeySize,
WrongMagic,
WrongNodePoolSize,
WrongSliceSize,
WrongValueSize,
TooBigTreeId,
}Variants§
KeySerializationError
Failed to serialize key to key buffer, maybe it is too big?
NoNodesLeft
no free nodes left in the slice
TooBig
the provided slice is too big for the map: the map internally uses u32 indices, so there
can’t be more than u32::MAX nodes
TooSmall
the provided slice is too small for the map
ValueSerializationError
failed to serialize value to value buffer, maybe it is too big?
WrongKeySize
key size of the map does not match key size of the type
WrongMagic
struct header has incorrect magic, maybe it is not initialized?
WrongNodePoolSize
node pool size from the map header does not match the actual slice size
WrongSliceSize
slice size is incorrect
WrongValueSize
value size of the map does not match key size of the type
TooBigTreeId
There are fewer trees than the supplied tree_id
Trait Implementations§
Source§impl BorshDeserialize for Error
impl BorshDeserialize for Error
Source§impl BorshSerialize for Error
impl BorshSerialize for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
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