#[repr(C)]pub struct TraceStorageDisabled;Expand description
Zero-sized storage when contention tracing is disabled.
Trait Implementations§
Source§impl Default for TraceStorageDisabled
impl Default for TraceStorageDisabled
Source§impl<C: Copy> TraceStorage<C> for TraceStorageDisabled
impl<C: Copy> TraceStorage<C> for TraceStorageDisabled
Source§fn new(_callsite_info: C) -> Self
fn new(_callsite_info: C) -> Self
Creates a new trace storage instance with the given
callsite_info.Source§fn on_contention<E: TransactionHooks<CallsiteInfo = C>>(&self)
fn on_contention<E: TransactionHooks<CallsiteInfo = C>>(&self)
Records the start of contention if not already recorded.
Source§fn on_finalized<E: TransactionHooks<CallsiteInfo = C>>(&self)
fn on_finalized<E: TransactionHooks<CallsiteInfo = C>>(&self)
Emits the contention trace event if contention occurred during this transaction.
Source§fn set_callsite_info(&self, _callsite_info: C)
fn set_callsite_info(&self, _callsite_info: C)
Updates the callsite info when restarting a transaction.
Auto Trait Implementations§
impl Freeze for TraceStorageDisabled
impl RefUnwindSafe for TraceStorageDisabled
impl Send for TraceStorageDisabled
impl Sync for TraceStorageDisabled
impl Unpin for TraceStorageDisabled
impl UnsafeUnpin for TraceStorageDisabled
impl UnwindSafe for TraceStorageDisabled
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