pub struct AccountingStorageEnabled { /* private fields */ }Expand description
Storage for debug accounting when DebugAccountingEnabled is true.
Trait Implementations§
Source§impl AccountingStorage for AccountingStorageEnabled
impl AccountingStorage for AccountingStorageEnabled
Source§fn new(locks_held: u32, finalized: bool) -> Self
fn new(locks_held: u32, finalized: bool) -> Self
Creates a new accounting storage instance with the given initial
locks_held and
finalized state.Source§fn locks_held(&self) -> u32
fn locks_held(&self) -> u32
Returns the number of locks currently held by the transaction.
Source§fn on_acquire(&self)
fn on_acquire(&self)
Increments the count of locks held by the transaction.
Source§fn on_release(&self)
fn on_release(&self)
Decrements the count of locks held by the transaction.
Source§fn set_finalized(&self, finalized: bool)
fn set_finalized(&self, finalized: bool)
Updates whether the transaction is finalized.
Auto Trait Implementations§
impl !Freeze for AccountingStorageEnabled
impl !RefUnwindSafe for AccountingStorageEnabled
impl !Sync for AccountingStorageEnabled
impl Send for AccountingStorageEnabled
impl Unpin for AccountingStorageEnabled
impl UnsafeUnpin for AccountingStorageEnabled
impl UnwindSafe for AccountingStorageEnabled
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more