Struct pemmican::Pemmican [] [src]

pub struct Pemmican<S, E> {
    pub shared: Arc<Shared<S>>,
    pub plugins: Vec<Arc<Box<Plugin<S, E>>>>,
    // some fields omitted
}

A Pemmican server instance.

Fields

Methods

impl<S, E> Pemmican<S, E> where
    S: 'static,
    E: Send + Sync + StdError + 'static, 
[src]

[src]

Create a new pemmican server instance

[src]

Run the server. It will run until the shutdown_signal future completes. You can use futures::future::empty() to run forever.

Trait Implementations

impl<S, E> Service for Pemmican<S, E> where
    S: 'static,
    E: Send + Sync + StdError + 'static, 
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

[src]

Process the request and return the response asynchronously.