Struct pemmican::Pemmican [] [src]

pub struct Pemmican<S: Send + Sync, E> {
    pub config: Config,
    pub shared: Arc<Shared<S>>,
    // some fields omitted
}

A Pemmican server instance.

Fields

Methods

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

[src]

Create a new pemmican server instance

[src]

Plug in a plugin. Currently we have not yet implemented methods to order or re-order these.

[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: Send + Sync + '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.