[−][src]Struct reactive_state::middleware::simple_logger::SimpleLoggerMiddleware
This is supported on
feature="simple_logger"
only.Logging Middleware which uses the log macros to publish actions/events that occur within the Store.
See simple_logger for more details.
Implementations
impl SimpleLoggerMiddleware
[src]
pub fn new() -> Self
[src]
This is supported on
feature="simple_logger"
only.pub fn log_level(self, log_level: LogLevel) -> Self
[src]
This is supported on
feature="simple_logger"
only.Trait Implementations
impl Default for SimpleLoggerMiddleware
[src]
impl<State, Action, Event, Effect> Middleware<State, Action, Event, Effect> for SimpleLoggerMiddleware where
Event: StoreEvent + Clone + Hash + Eq + Debug,
State: Debug,
Action: Debug,
Effect: Debug,
[src]
Event: StoreEvent + Clone + Hash + Eq + Debug,
State: Debug,
Action: Debug,
Effect: Debug,
fn on_reduce(
&self,
store: &Store<State, Action, Event, Effect>,
action: Option<&Action>,
reduce: ReduceFn<State, Action, Event, Effect>
) -> ReduceMiddlewareResult<Event, Effect>
[src]
&self,
store: &Store<State, Action, Event, Effect>,
action: Option<&Action>,
reduce: ReduceFn<State, Action, Event, Effect>
) -> ReduceMiddlewareResult<Event, Effect>
fn process_effect(
&self,
_store: &Store<State, Action, Event, Effect>,
effect: Effect
) -> Option<Effect>
[src]
&self,
_store: &Store<State, Action, Event, Effect>,
effect: Effect
) -> Option<Effect>
fn on_notify(
&self,
store: &Store<State, Action, Event, Effect>,
events: Vec<Event>,
notify: NotifyFn<State, Action, Event, Effect>
) -> Vec<Event>
[src]
&self,
store: &Store<State, Action, Event, Effect>,
events: Vec<Event>,
notify: NotifyFn<State, Action, Event, Effect>
) -> Vec<Event>
Auto Trait Implementations
impl RefUnwindSafe for SimpleLoggerMiddleware
impl Send for SimpleLoggerMiddleware
impl Sync for SimpleLoggerMiddleware
impl Unpin for SimpleLoggerMiddleware
impl UnwindSafe for SimpleLoggerMiddleware
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,