#[repr(C)]pub struct AccountingStorageDisabled;Expand description
Zero-sized storage for debug accounting when DebugAccountingEnabled is false.
Trait Implementations§
Source§impl AccountingStorage for AccountingStorageDisabled
impl AccountingStorage for AccountingStorageDisabled
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 AccountingStorageDisabled
impl RefUnwindSafe for AccountingStorageDisabled
impl Send for AccountingStorageDisabled
impl Sync for AccountingStorageDisabled
impl Unpin for AccountingStorageDisabled
impl UnsafeUnpin for AccountingStorageDisabled
impl UnwindSafe for AccountingStorageDisabled
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