pub struct KeyMetadata {
pub address: Option<[u8; 20]>,
pub slot: Option<[u8; 32]>,
}Expand description
Optional on-chain location metadata for a StateKey.
Used by SyncEngine with crate::ReadStrategy::Quorum to know
which EVM contract address and storage slot to read when verifying on-chain
agreement across multiple chains.
Fields§
§address: Option<[u8; 20]>EVM contract address whose storage slot holds this state.
slot: Option<[u8; 32]>32-byte storage slot index within address.
Trait Implementations§
Source§impl Clone for KeyMetadata
impl Clone for KeyMetadata
Source§fn clone(&self) -> KeyMetadata
fn clone(&self) -> KeyMetadata
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 moreSource§impl Debug for KeyMetadata
impl Debug for KeyMetadata
Source§impl Default for KeyMetadata
impl Default for KeyMetadata
Source§fn default() -> KeyMetadata
fn default() -> KeyMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeyMetadata
impl RefUnwindSafe for KeyMetadata
impl Send for KeyMetadata
impl Sync for KeyMetadata
impl Unpin for KeyMetadata
impl UnsafeUnpin for KeyMetadata
impl UnwindSafe for KeyMetadata
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