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]

Create a new pemmican server instance

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.

Process the request and return the response asynchronously.

Auto Trait Implementations

impl<S, E> !Send for Pemmican<S, E>

impl<S, E> !Sync for Pemmican<S, E>