Struct solana_runtime::accounts::AccountLocks
source · pub struct AccountLocks {
write_locks: HashSet<Pubkey>,
readonly_locks: HashMap<Pubkey, u64>,
}
Fields§
§write_locks: HashSet<Pubkey>
§readonly_locks: HashMap<Pubkey, u64>
Implementations§
source§impl AccountLocks
impl AccountLocks
fn is_locked_readonly(&self, key: &Pubkey) -> bool
fn is_locked_write(&self, key: &Pubkey) -> bool
fn insert_new_readonly(&mut self, key: &Pubkey)
fn lock_readonly(&mut self, key: &Pubkey) -> bool
fn unlock_readonly(&mut self, key: &Pubkey)
fn unlock_write(&mut self, key: &Pubkey)
Trait Implementations§
source§impl AbiExample for AccountLocks
impl AbiExample for AccountLocks
source§impl Debug for AccountLocks
impl Debug for AccountLocks
source§impl Default for AccountLocks
impl Default for AccountLocks
source§fn default() -> AccountLocks
fn default() -> AccountLocks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AccountLocks
impl Send for AccountLocks
impl Sync for AccountLocks
impl Unpin for AccountLocks
impl UnwindSafe for AccountLocks
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