pub struct StoreWithMiddleware<Inner, M, State, InnerAction, OuterAction> where
    Inner: StoreApi<State, InnerAction> + Send + Sync,
    M: MiddleWare<State, OuterAction, InnerAction> + Send + Sync,
    State: Send + Sync + 'static,
    InnerAction: Send + Sync + 'static,
    OuterAction: Send + Sync + 'static, 
{ /* private fields */ }
Expand description

Store which ties an underlying store and middleware together.

Implementations

Wrap the store with middleware

Trait Implementations

Dispatch a new action to the store Read more

Select a part of the state, this is more efficient than copying the entire state all the time. In case you still need a full copy of the state, use the state_cloned method. Read more

Subscribe to state changes. Every time an action is dispatched the subscriber will be notified after the state is updated Read more

Returns a cloned version of the state. This is not efficient, if you only need a part of the state use select instead Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.