Struct pemmican::plugins::page_visits::PageVisits
[−]
[src]
pub struct PageVisits { /* fields omitted */ }
This plugin counts page visits. It counts visits to every URL accessed, whether the URL is valid or not. This router can be placed anywhere in the chain; it will not disturb the other routers/handlers.
Methods
impl PageVisits
[src]
fn new() -> PageVisits
[src]
fn get(&self, url_path: &str) -> Option<u32>
[src]
This function gets the number of times the path was called.
Trait Implementations
impl<S, E> Plugin<S, E> for PageVisits where
S: 'static,
E: 'static,
[src]
S: 'static,
E: 'static,
fn handle(
&self,
data: PluginData<S>
) -> Box<Future<Item = PluginData<S>, Error = E>>
[src]
&self,
data: PluginData<S>
) -> Box<Future<Item = PluginData<S>, Error = E>>