pub struct AccountStorageReference {
pub(crate) storage: Arc<AccountStorageEntry>,
pub(crate) id: AppendVecId,
}
Fields§
§storage: Arc<AccountStorageEntry>
the single storage for a given slot
id: AppendVecId
id can be read from ‘storage’, but it is an atomic read. id will never change while a storage is held, so we store it separately here for faster runtime lookup in ‘get_account_storage_entry’
Trait Implementations§
source§impl Clone for AccountStorageReference
impl Clone for AccountStorageReference
source§fn clone(&self) -> AccountStorageReference
fn clone(&self) -> AccountStorageReference
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 moreAuto Trait Implementations§
impl RefUnwindSafe for AccountStorageReference
impl Send for AccountStorageReference
impl Sync for AccountStorageReference
impl Unpin for AccountStorageReference
impl UnwindSafe for AccountStorageReference
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