Struct pemmican::plugins::page_visits::PageVisits
[−]
[src]
pub struct PageVisits { /* fields omitted */ }
Methods
impl PageVisits
[src]
Trait Implementations
impl Default for PageVisits
[src]
fn default() -> PageVisits
[src]
Returns the "default value" for a type. Read more
impl<S: Send + Sync + 'static, E: 'static> Plugin<S, E> for PageVisits
[src]
fn before_handler(&self, request: &mut Request)
[src]
This runs before the handler, and potentially modifies the request
fn after_handler(
&self,
future: Box<Future<Item = PluginData<S>, Error = E>>
) -> Box<Future<Item = PluginData<S>, Error = E>>
[src]
&self,
future: Box<Future<Item = PluginData<S>, Error = E>>
) -> Box<Future<Item = PluginData<S>, Error = E>>
This runs after the handler. This must return a future that uses the passed in future, returning the modified future, (e.g. perhaps using and_then) This potentially modifies the Response (available through the data
parameter). Read more