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
Fields
value_size: u64
The initial value was to large to fit into the memory.
Trait Implementations
sourceimpl From<ValueError> for InitError
impl From<ValueError> for InitError
sourcefn from(e: ValueError) -> InitError
fn from(e: ValueError) -> InitError
Converts to this type from the input type.
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
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