CallbackUpdater

Struct CallbackUpdater 

Source
pub struct CallbackUpdater<A, B, C, L>
where A: FnMut(TendrilReport<L>), B: FnMut(RawTendril), C: FnMut(i32), L: TendrilLog,
{ pub count: C, pub before: B, pub after: A, /* private fields */ }
Expand description

Accepts callbacks to be called by the UpdateHandler methods.

Fields§

§count: C§before: B§after: A

Implementations§

Source§

impl<A, B, C, L> CallbackUpdater<A, B, C, L>
where A: FnMut(TendrilReport<L>), B: FnMut(RawTendril), C: FnMut(i32), L: TendrilLog,

Source

pub fn new(count: C, before: B, after: A) -> CallbackUpdater<A, B, C, L>

Trait Implementations§

Source§

impl<A, B, C, L> UpdateHandler<L> for CallbackUpdater<A, B, C, L>
where A: FnMut(TendrilReport<L>), B: FnMut(RawTendril), C: FnMut(i32), L: TendrilLog,

Source§

fn count(&mut self, total: i32)

Accepts value indicating the total count of all raw tendrils that will be processed.
Source§

fn before(&mut self, raw: RawTendril)

Accepts raw indicating the tendril that will be processed. This is called before processing.
Source§

fn after(&mut self, report: TendrilReport<L>)

Accepts report containing the result of the operation. This is called after processing.

Auto Trait Implementations§

§

impl<A, B, C, L> Freeze for CallbackUpdater<A, B, C, L>
where C: Freeze, B: Freeze, A: Freeze,

§

impl<A, B, C, L> RefUnwindSafe for CallbackUpdater<A, B, C, L>

§

impl<A, B, C, L> Send for CallbackUpdater<A, B, C, L>
where C: Send, B: Send, A: Send, L: Send,

§

impl<A, B, C, L> Sync for CallbackUpdater<A, B, C, L>
where C: Sync, B: Sync, A: Sync, L: Sync,

§

impl<A, B, C, L> Unpin for CallbackUpdater<A, B, C, L>
where C: Unpin, B: Unpin, A: Unpin, L: Unpin,

§

impl<A, B, C, L> UnwindSafe for CallbackUpdater<A, B, C, L>

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.