pub struct AccessListItem {
pub address: Address,
pub storage_keys: Vec<FixedBytes<32>>,
}
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§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. 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