#[repr(u32)]pub enum ErrorCode {
LoadingStateOverExistingState = 1,
LoadEmptyState = 2,
StateDecompression = 3,
StateDeserialization = 4,
UnknownStateVersion = 5,
StateFileAccess = 6,
GenericError = 0,
}
Expand description
Auto-generated discriminant enum variants
Variants§
LoadingStateOverExistingState = 1
§Summary
It is not allowed to load a state overriding the existing node state.
§Description
It is not allowed to load a state overriding the existing node state. If you have a use case for that, please create an issue.
LoadEmptyState = 2
§Summary
Attempt to load a state with no blocks
§Description
It is not allowed to load a state without any blocks in it.
StateDecompression = 3
StateDeserialization = 4
UnknownStateVersion = 5
StateFileAccess = 6
GenericError = 0
Implementations§
Trait Implementations§
Source§impl AsRef<str> for StateLoaderCode
impl AsRef<str> for StateLoaderCode
Source§impl Clone for StateLoaderCode
impl Clone for StateLoaderCode
Source§fn clone(&self) -> StateLoaderCode
fn clone(&self) -> StateLoaderCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StateLoaderCode
impl Debug for StateLoaderCode
Source§impl<'_enum> From<&'_enum StateLoader> for StateLoaderCode
impl<'_enum> From<&'_enum StateLoader> for StateLoaderCode
Source§fn from(val: &'_enum StateLoader) -> StateLoaderCode
fn from(val: &'_enum StateLoader) -> StateLoaderCode
Converts to this type from the input type.
Source§impl From<StateLoader> for StateLoaderCode
impl From<StateLoader> for StateLoaderCode
Source§fn from(val: StateLoader) -> StateLoaderCode
fn from(val: StateLoader) -> StateLoaderCode
Converts to this type from the input type.
Source§impl NamedError for StateLoaderCode
impl NamedError for StateLoaderCode
fn get_error_name(&self) -> String
Source§impl PartialEq for StateLoaderCode
impl PartialEq for StateLoaderCode
impl Copy for StateLoaderCode
impl Eq for StateLoaderCode
impl StructuralPartialEq for StateLoaderCode
Auto Trait Implementations§
impl Freeze for StateLoaderCode
impl RefUnwindSafe for StateLoaderCode
impl Send for StateLoaderCode
impl Sync for StateLoaderCode
impl Unpin for StateLoaderCode
impl UnwindSafe for StateLoaderCode
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