pub struct BlockAccessListGasError {
pub items: u64,
pub max_items: u64,
pub gas_limit: u64,
}Expand description
Error returned when a block access list item cost exceeds the block gas limit.
Fields§
§items: u64Number of block access list items.
max_items: u64Maximum number of block access list items allowed by the gas limit.
gas_limit: u64Block gas limit used for validation.
Implementations§
Source§impl BlockAccessListGasError
impl BlockAccessListGasError
Sourcepub const fn new(items: u64, gas_limit: u64) -> BlockAccessListGasError
pub const fn new(items: u64, gas_limit: u64) -> BlockAccessListGasError
Creates a new gas limit validation error for the provided item count and gas limit.
Trait Implementations§
Source§impl Clone for BlockAccessListGasError
impl Clone for BlockAccessListGasError
Source§fn clone(&self) -> BlockAccessListGasError
fn clone(&self) -> BlockAccessListGasError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockAccessListGasError
Source§impl Debug for BlockAccessListGasError
impl Debug for BlockAccessListGasError
Source§impl Display for BlockAccessListGasError
impl Display for BlockAccessListGasError
impl Eq for BlockAccessListGasError
Source§impl Error for BlockAccessListGasError
impl Error for BlockAccessListGasError
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 Hash for BlockAccessListGasError
impl Hash for BlockAccessListGasError
Source§impl PartialEq for BlockAccessListGasError
impl PartialEq for BlockAccessListGasError
Source§fn eq(&self, other: &BlockAccessListGasError) -> bool
fn eq(&self, other: &BlockAccessListGasError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockAccessListGasError
Auto Trait Implementations§
impl Freeze for BlockAccessListGasError
impl RefUnwindSafe for BlockAccessListGasError
impl Send for BlockAccessListGasError
impl Sync for BlockAccessListGasError
impl Unpin for BlockAccessListGasError
impl UnsafeUnpin for BlockAccessListGasError
impl UnwindSafe for BlockAccessListGasError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Converts
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>
Converts
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 moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes