Struct reactive_state::middleware::web_logger::WebLoggerMiddleware [−][src]
pub struct WebLoggerMiddleware { /* fields omitted */ }
web_logger
only.Expand description
Logging middleware for applications running in the browser.
See web_logger for more details.
Implementations
impl WebLoggerMiddleware
[src]
impl WebLoggerMiddleware
[src]pub fn new() -> Self
[src]
pub fn log_level(self, log_level: LogLevel) -> Self
[src]
pub fn log_level(self, log_level: LogLevel) -> Self
[src]Set the level at which the data from this middleware will be logged to.
pub fn display_type(self, display_type: DisplayType) -> Self
[src]
pub fn display_type(self, display_type: DisplayType) -> Self
[src]What type of display to use when printing the data from this middleware.
Trait Implementations
impl Default for WebLoggerMiddleware
[src]
impl Default for WebLoggerMiddleware
[src]impl<State, Action, Event, Effect> Middleware<State, Action, Event, Effect> for WebLoggerMiddleware where
State: Serialize,
Action: Serialize + Display,
Event: Clone + Hash + Eq + Serialize,
Effect: Serialize,
[src]
impl<State, Action, Event, Effect> Middleware<State, Action, Event, Effect> for WebLoggerMiddleware where
State: Serialize,
Action: Serialize + Display,
Event: Clone + Hash + Eq + Serialize,
Effect: Serialize,
[src]fn on_reduce(
&self,
store: &Store<State, Action, Event, Effect>,
action: Option<&Action>,
reduce: ReduceFn<State, Action, Event, Effect>
) -> ReduceMiddlewareResult<Event, Effect>
[src]
fn on_reduce(
&self,
store: &Store<State, Action, Event, Effect>,
action: Option<&Action>,
reduce: ReduceFn<State, Action, Event, Effect>
) -> ReduceMiddlewareResult<Event, Effect>
[src]This method is invoked by the Store during a
Store::dispatch() just before the Action
is sent to the
Reducer. It is necessary to call the
provided reduce
function, which executes subsequent
middleware and runs the Reducer, and usually
the events produced by the reduce
function are returned from
this method. Read more
fn process_effect(
&self,
_store: &Store<State, Action, Event, Effect>,
effect: Effect
) -> Option<Effect>
[src]
fn process_effect(
&self,
_store: &Store<State, Action, Event, Effect>,
effect: Effect
) -> Option<Effect>
[src]Process an Effect
. Returns None
if the effect was
processed/consumed by this handler, otherwise returns
Some(effect)
. Read more
fn on_notify(
&self,
store: &Store<State, Action, Event, Effect>,
events: Vec<Event>,
notify: NotifyFn<State, Action, Event, Effect>
) -> Vec<Event>
[src]
fn on_notify(
&self,
store: &Store<State, Action, Event, Effect>,
events: Vec<Event>,
notify: NotifyFn<State, Action, Event, Effect>
) -> Vec<Event>
[src]This method is invoked by the Store during a
Store::dispatch() after the Reducer has
processed the Action
and all Middleware::on_reduce()
methods have completed, just before resulting events are
sent to the store listeners. It is necessary to call the
provided notify
function, which executes subsequent
middleware and then notifies the listeners. Read more
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]pub fn into_opt_prop_value(self) -> Option<V>
[src]
pub fn into_opt_prop_value(self) -> Option<V>
[src]Convert self
to an optional value of a Properties
struct.
impl<T> IntoPropValue<Option<T>> for T
[src]
impl<T> IntoPropValue<Option<T>> for T
[src]pub fn into_prop_value(self) -> Option<T>
[src]
pub fn into_prop_value(self) -> Option<T>
[src]Convert self
to a value of a Properties
struct.
impl<T> IntoPropValue<T> for T
[src]
impl<T> IntoPropValue<T> for T
[src]pub fn into_prop_value(self) -> T
[src]
pub fn into_prop_value(self) -> T
[src]Convert self
to a value of a Properties
struct.
impl<T> Any for T where
T: Any,
T: Any,