Struct AccessListItem
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§
§impl AccessListItem
impl AccessListItem
pub fn size(&self) -> usize
pub fn size(&self) -> usize
Calculates a heuristic for the in-memory size of the AccessListItem.
Trait Implementations§
§impl Clone for AccessListItem
impl Clone for AccessListItem
§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 more§impl Debug for AccessListItem
impl Debug for AccessListItem
§impl Decodable for AccessListItem
impl Decodable for AccessListItem
§fn decode(b: &mut &[u8]) -> Result<AccessListItem, Error>
fn decode(b: &mut &[u8]) -> Result<AccessListItem, Error>
Decodes the blob into the appropriate type.
buf
must be advanced past
the decoded object.§impl Default for AccessListItem
impl Default for AccessListItem
§fn default() -> AccessListItem
fn default() -> AccessListItem
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for AccessListItem
impl<'de> Deserialize<'de> for AccessListItem
§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
§impl Encodable for AccessListItem
impl Encodable for AccessListItem
§impl Hash for AccessListItem
impl Hash for AccessListItem
§impl PartialEq for AccessListItem
impl PartialEq for AccessListItem
§impl Serialize for AccessListItem
impl Serialize for AccessListItem
§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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more