Enum ic_stable_structures::cell::InitError
source · pub enum InitError {
IncompatibleVersion {
last_supported_version: u8,
decoded_version: u8,
},
ValueTooLarge {
value_size: u64,
},
}
Expand description
Indicates a failure to initialize a Cell.
Variants§
IncompatibleVersion
The version of the library does not support version of the cell layout encoded in the memory.
ValueTooLarge
The initial value was to large to fit into the memory.
Trait Implementations§
source§impl From<ValueError> for InitError
impl From<ValueError> for InitError
source§fn from(e: ValueError) -> InitError
fn from(e: ValueError) -> InitError
Converts to this type from the input type.
source§impl PartialEq<InitError> for InitError
impl PartialEq<InitError> for InitError
impl Eq for InitError
impl StructuralEq for InitError
impl StructuralPartialEq for InitError
Auto Trait Implementations§
impl RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl UnwindSafe for InitError
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