Struct shio::Shio
[−]
[src]
pub struct Shio<H: Handler + 'static> where
<H::Result as IntoFuture>::Error: Debug + Send, { /* fields omitted */ }
Methods
impl<H: Handler> Shio<H> where
<H::Result as IntoFuture>::Error: Debug + Send,
[src]
<H::Result as IntoFuture>::Error: Debug + Send,
fn new(handler: H) -> Self
[src]
fn manage<K: Key>(&mut self, value: K::Value) -> &mut Self where
<K as Key>::Value: Send + Sync,
[src]
<K as Key>::Value: Send + Sync,
Add data to global state
fn threads(&mut self, threads: usize)
[src]
Set the number of threads to use.