#[non_exhaustive]#[repr(u32)]pub enum StateLoaderError {
LoadingStateOverExistingState = 1,
LoadEmptyState = 2,
StateDecompression {
details: String,
},
StateDeserialization {
details: String,
},
UnknownStateVersion {
version: u32,
},
StateFileAccess {
path: String,
reason: String,
},
GenericError {
message: String,
},
}
Expand description
Domain: AnvilZKsync
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.
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
StateDeserialization
UnknownStateVersion
StateFileAccess
GenericError
Trait Implementations§
Source§impl AsRef<str> for StateLoader
impl AsRef<str> for StateLoader
Source§impl Clone for StateLoader
impl Clone for StateLoader
Source§fn clone(&self) -> StateLoader
fn clone(&self) -> StateLoader
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 CustomErrorMessage for StateLoader
impl CustomErrorMessage for StateLoader
fn get_message(&self) -> String
Source§impl Debug for StateLoader
impl Debug for StateLoader
Source§impl<'de> Deserialize<'de> for StateLoader
impl<'de> Deserialize<'de> for StateLoader
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 Display for StateLoader
impl Display for StateLoader
Source§impl Documented for StateLoader
impl Documented for StateLoader
type Documentation = &'static ErrorDocumentation
fn get_documentation( &self, ) -> Result<Option<Self::Documentation>, DocumentationError>
Source§impl Error for StateLoader
impl Error for StateLoader
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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<Error> for StateLoader
impl From<Error> for StateLoader
Source§impl From<StateLoader> for AnvilZksync
impl From<StateLoader> for AnvilZksync
Source§fn from(val: StateLoader) -> Self
fn from(val: StateLoader) -> Self
Converts to this type from the input type.
Source§impl From<StateLoader> for PackedError<ZksyncError>
impl From<StateLoader> for PackedError<ZksyncError>
Source§fn from(value: StateLoader) -> Self
fn from(value: StateLoader) -> Self
Converts to this type from the input type.
Source§impl From<StateLoader> for SerializedError
impl From<StateLoader> for SerializedError
Source§fn from(value: StateLoader) -> Self
fn from(value: StateLoader) -> Self
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 From<StateLoader> for ZksyncError
impl From<StateLoader> for ZksyncError
Source§fn from(val: StateLoader) -> Self
fn from(val: StateLoader) -> Self
Converts to this type from the input type.
Source§impl ICustomError<ZksyncError, ZksyncError> for StateLoader
impl ICustomError<ZksyncError, ZksyncError> for StateLoader
fn to_unified(&self) -> ZksyncError
Source§impl NamedError for StateLoader
impl NamedError for StateLoader
fn get_error_name(&self) -> String
Source§impl PartialEq for StateLoader
impl PartialEq for StateLoader
Source§impl Serialize for StateLoader
impl Serialize for StateLoader
impl Eq for StateLoader
impl StructuralPartialEq for StateLoader
Auto Trait Implementations§
impl Freeze for StateLoader
impl RefUnwindSafe for StateLoader
impl Send for StateLoader
impl Sync for StateLoader
impl Unpin for StateLoader
impl UnwindSafe for StateLoader
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