pub enum ArbosStateError {
Show 18 variants
Storage(StorageError),
Retryable(RetryableError),
L1Pricing(L1PricingError),
L2Pricing(L2PricingError),
AddressSet(AddressSetError),
AddressTable(AddressTableError),
Blockhashes(BlockhashesError),
Features(FeaturesError),
MerkleAccumulator(MerkleAccumulatorError),
Programs(ProgramsError),
FilteredTx(FilteredTxError),
Uninitialised,
UnsupportedVersion(u64),
UnsupportedScheduledVersion {
version: u64,
max: u64,
},
UnsupportedRunningVersion(u64),
AddressTableNotEmpty,
AddressTableSlotMismatch,
InvalidBrotliCompressionLevel,
}Expand description
Top-level error for arbos_state operations that orchestrate multiple
subsystems.
Each subsystem owns its own error type; this enum aggregates them via
#[from] so cross-module call chains in arbos_state (e.g. running an
ArbOS version upgrade hook that touches programs, l2 pricing, and the
transaction filtering address set in one go) can use ? ergonomically.
Variants§
Storage(StorageError)
Underlying storage failure.
Retryable(RetryableError)
Surfaced from a retryable-state operation.
L1Pricing(L1PricingError)
Surfaced from an L1 pricing operation.
L2Pricing(L2PricingError)
Surfaced from an L2 pricing operation.
AddressSet(AddressSetError)
Surfaced from an address-set operation.
AddressTable(AddressTableError)
Surfaced from an address-table operation.
Blockhashes(BlockhashesError)
Surfaced from a blockhashes operation.
Features(FeaturesError)
Surfaced from a features operation.
MerkleAccumulator(MerkleAccumulatorError)
Surfaced from a merkle-accumulator operation.
Programs(ProgramsError)
Surfaced from a programs operation.
FilteredTx(FilteredTxError)
Surfaced from a filtered-transactions operation.
Uninitialised
ArbosState::open found version == 0 in storage. Expected only at
genesis before initialize runs.
UnsupportedVersion(u64)
ArbosState::open found a version word this build does not recognise.
UnsupportedScheduledVersion
A scheduled upgrade targets an ArbOS version this node does not support.
Fields
UnsupportedRunningVersion(u64)
The state is currently running an ArbOS version this build does not know how to apply per-block hooks for.
AddressTableNotEmpty
Genesis initialisation found the address table already populated.
AddressTableSlotMismatch
During genesis initialisation, a freshly registered address received a slot index that did not match its position in the input list.
InvalidBrotliCompressionLevel
A brotli compression level above the maximum was supplied.
Trait Implementations§
Source§impl Clone for ArbosStateError
impl Clone for ArbosStateError
Source§fn clone(&self) -> ArbosStateError
fn clone(&self) -> ArbosStateError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArbosStateError
impl Debug for ArbosStateError
Source§impl Display for ArbosStateError
impl Display for ArbosStateError
Source§impl Error for ArbosStateError
impl Error for ArbosStateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AddressSetError> for ArbosStateError
impl From<AddressSetError> for ArbosStateError
Source§fn from(source: AddressSetError) -> Self
fn from(source: AddressSetError) -> Self
Source§impl From<AddressTableError> for ArbosStateError
impl From<AddressTableError> for ArbosStateError
Source§fn from(source: AddressTableError) -> Self
fn from(source: AddressTableError) -> Self
Source§impl From<ArbosStateError> for InternalTxDecodeError
impl From<ArbosStateError> for InternalTxDecodeError
Source§fn from(source: ArbosStateError) -> Self
fn from(source: ArbosStateError) -> Self
Source§impl From<BlockhashesError> for ArbosStateError
impl From<BlockhashesError> for ArbosStateError
Source§fn from(source: BlockhashesError) -> Self
fn from(source: BlockhashesError) -> Self
Source§impl From<FeaturesError> for ArbosStateError
impl From<FeaturesError> for ArbosStateError
Source§fn from(source: FeaturesError) -> Self
fn from(source: FeaturesError) -> Self
Source§impl From<FilteredTxError> for ArbosStateError
impl From<FilteredTxError> for ArbosStateError
Source§fn from(source: FilteredTxError) -> Self
fn from(source: FilteredTxError) -> Self
Source§impl From<L1PricingError> for ArbosStateError
impl From<L1PricingError> for ArbosStateError
Source§fn from(source: L1PricingError) -> Self
fn from(source: L1PricingError) -> Self
Source§impl From<L2PricingError> for ArbosStateError
impl From<L2PricingError> for ArbosStateError
Source§fn from(source: L2PricingError) -> Self
fn from(source: L2PricingError) -> Self
Source§impl From<MerkleAccumulatorError> for ArbosStateError
impl From<MerkleAccumulatorError> for ArbosStateError
Source§fn from(source: MerkleAccumulatorError) -> Self
fn from(source: MerkleAccumulatorError) -> Self
Source§impl From<ProgramsError> for ArbosStateError
impl From<ProgramsError> for ArbosStateError
Source§fn from(source: ProgramsError) -> Self
fn from(source: ProgramsError) -> Self
Source§impl From<RetryableError> for ArbosStateError
impl From<RetryableError> for ArbosStateError
Source§fn from(source: RetryableError) -> Self
fn from(source: RetryableError) -> Self
Source§impl From<StorageError> for ArbosStateError
impl From<StorageError> for ArbosStateError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Auto Trait Implementations§
impl Freeze for ArbosStateError
impl !RefUnwindSafe for ArbosStateError
impl Send for ArbosStateError
impl Sync for ArbosStateError
impl Unpin for ArbosStateError
impl !UnwindSafe for ArbosStateError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
§fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
TxEnv] from a transaction and a sender address.§impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
§fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
TxEnv] from a transaction, its sender, and encoded transaction bytes.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.