pub struct NoHooks;Trait Implementations§
Source§impl PassHooks for NoHooks
impl PassHooks for NoHooks
Source§fn outbound(&self, _extras: &mut Extras) -> Vec<RawRecord>
fn outbound(&self, _extras: &mut Extras) -> Vec<RawRecord>
Records to write at the start of a pass (e.g. device announce).
A failure to write them fails the pass.
Source§fn on_foreign_records(
&self,
_records: &[RawRecord],
_extras: &mut Extras,
) -> Vec<RawRecord>
fn on_foreign_records( &self, _records: &[RawRecord], _extras: &mut Extras, ) -> Vec<RawRecord>
Records of other types seen in this pass’s delta. Returned records are
written back; a failed write is reported and retried because the hook
must be idempotent over the ledger extras.
Source§fn on_account_switch(&self, _from: &str, _to: &str)
fn on_account_switch(&self, _from: &str, _to: &str)
The account scope changed. The engine resets its own ledger for the
new scope (its
extras start empty again); drop any app-owned state
that belonged to from.Auto Trait Implementations§
impl Forget for NoHooks
impl Freeze for NoHooks
impl RefUnwindSafe for NoHooks
impl Send for NoHooks
impl Sync for NoHooks
impl Unpin for NoHooks
impl UnsafeUnpin for NoHooks
impl UnwindSafe for NoHooks
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