pub struct AccessListItem {
pub address: Address,
pub storage_keys: Vec<FixedBytes<32>>,
}
Available on crate feature
eth
only.Expand description
A list of addresses and storage keys that the transaction plans to access. Accesses outside the list are possible, but become more expensive.
Fields§
§address: Address
Account addresses that would be loaded at the start of execution
storage_keys: Vec<FixedBytes<32>>
Keys of storage that would be loaded at the start of execution
Implementations§
source§impl AccessListItem
impl AccessListItem
sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Calculates a heuristic for the in-memory size of the AccessListItem.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for AccessListItem
impl<'arbitrary> Arbitrary<'arbitrary> for AccessListItem
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<AccessListItem, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<AccessListItem, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<AccessListItem, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<AccessListItem, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for AccessListItem
impl Clone for AccessListItem
source§fn clone(&self) -> AccessListItem
fn clone(&self) -> AccessListItem
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 AccessListItem
impl Debug for AccessListItem
source§impl Decodable for AccessListItem
impl Decodable for AccessListItem
source§impl Default for AccessListItem
impl Default for AccessListItem
source§fn default() -> AccessListItem
fn default() -> AccessListItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AccessListItem
impl<'de> Deserialize<'de> for AccessListItem
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessListItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessListItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encodable for AccessListItem
impl Encodable for AccessListItem
source§impl Hash for AccessListItem
impl Hash for AccessListItem
source§impl PartialEq for AccessListItem
impl PartialEq for AccessListItem
source§impl Serialize for AccessListItem
impl Serialize for AccessListItem
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AccessListItem
impl StructuralPartialEq for AccessListItem
Auto Trait Implementations§
impl Freeze for AccessListItem
impl RefUnwindSafe for AccessListItem
impl Send for AccessListItem
impl Sync for AccessListItem
impl Unpin for AccessListItem
impl UnwindSafe for AccessListItem
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 more