pub struct TraceStorageEnabled<C: Copy> { /* private fields */ }Expand description
Extra state when contention tracing is enabled.
Trait Implementations§
Source§impl<C: Copy + Default> Default for TraceStorageEnabled<C>
impl<C: Copy + Default> Default for TraceStorageEnabled<C>
Source§impl<C: Copy> TraceStorage<C> for TraceStorageEnabled<C>
impl<C: Copy> TraceStorage<C> for TraceStorageEnabled<C>
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<C> !Freeze for TraceStorageEnabled<C>
impl<C> !RefUnwindSafe for TraceStorageEnabled<C>
impl<C> !Sync for TraceStorageEnabled<C>
impl<C> Send for TraceStorageEnabled<C>where
C: Send,
impl<C> Unpin for TraceStorageEnabled<C>where
C: Unpin,
impl<C> UnsafeUnpin for TraceStorageEnabled<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for TraceStorageEnabled<C>where
C: UnwindSafe,
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