Skip to main content

NoHooks

Struct NoHooks 

Source
pub struct NoHooks;

Trait Implementations§

Source§

impl PassHooks for NoHooks

Source§

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>

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)

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.