Skip to main content

Reducer

Trait Reducer 

Source
pub trait Reducer<A>
where Self: Sized, A: Clone,
{ // Required method async fn reduce( state: OptionLink<Self>, event: Link<ReducerAction<A>>, storage: &CoreBlockStorage, ) -> Result<Link<Self>, Error>; }

Required Methods§

Source

async fn reduce( state: OptionLink<Self>, event: Link<ReducerAction<A>>, storage: &CoreBlockStorage, ) -> Result<Link<Self>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§