pub struct NoopHooks;Expand description
No-op hooks — zero overhead. Used by Database::run().
Trait Implementations§
Source§impl RunnerHooks for NoopHooks
impl RunnerHooks for NoopHooks
Source§fn on_commit_error(
&self,
_err: &TransactionCommitError,
) -> impl Future<Output = FdbResult<()>> + Send
fn on_commit_error( &self, _err: &TransactionCommitError, ) -> impl Future<Output = FdbResult<()>> + Send
Called when commit fails, before
on_error() resets the transaction.
This is the only window to read conflicting keys or inspect error state. Read moreSource§fn on_closure_error(&self, _err: &FdbError)
fn on_closure_error(&self, _err: &FdbError)
Called when a closure error triggers a retry.
Source§fn on_error_duration(&self, _duration_ms: u64)
fn on_error_duration(&self, _duration_ms: u64)
Called after
on_error() completes with its duration.Source§fn on_commit_success(
&self,
_committed: &TransactionCommitted,
_commit_duration_ms: u64,
)
fn on_commit_success( &self, _committed: &TransactionCommitted, _commit_duration_ms: u64, )
Called after successful commit with the committed transaction and commit duration.
Source§fn on_complete(&self)
fn on_complete(&self)
Called when the runner finishes (success or final failure).
impl Copy for NoopHooks
Auto Trait Implementations§
impl Freeze for NoopHooks
impl RefUnwindSafe for NoopHooks
impl Send for NoopHooks
impl Sync for NoopHooks
impl Unpin for NoopHooks
impl UnwindSafe for NoopHooks
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