[−][src]Struct reactive_state::middleware::web_logger::WebLoggerMiddleware
This is supported on
feature="web_logger"
only.Logging middleware for applications running in the browser.
See web_logger for more details.
Implementations
impl WebLoggerMiddleware
[src]
pub fn new() -> Self
[src]
This is supported on
feature="web_logger"
only.pub fn log_level(self, log_level: LogLevel) -> Self
[src]
This is supported on
feature="web_logger"
only.Trait Implementations
impl Default for WebLoggerMiddleware
[src]
impl<State, Action, Event, Effect> Middleware<State, Action, Event, Effect> for WebLoggerMiddleware where
State: Serialize,
Action: Serialize + Display,
Event: StoreEvent + Clone + Hash + Eq + Serialize,
Effect: Serialize,
[src]
State: Serialize,
Action: Serialize + Display,
Event: StoreEvent + Clone + Hash + Eq + Serialize,
Effect: Serialize,
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 WebLoggerMiddleware
impl Send for WebLoggerMiddleware
impl Sync for WebLoggerMiddleware
impl Unpin for WebLoggerMiddleware
impl UnwindSafe for WebLoggerMiddleware
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>,