Trait acme_net::WebBackend

source ·
pub trait WebBackend {
    type Ctx: Contextual;
    type Server: ServerSpec + Send + Sync;

    fn client<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Router> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn context(&self) -> Self::Ctx; fn server(&self) -> Self::Server; fn serve<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = AsyncResult> + Send + 'async_trait>>
    where
        Self: Sync + 'async_trait,
        'life0: 'async_trait
, { ... } }

Required Associated Types§

Required Methods§

Provided Methods§

Quickstart the server with the outlined client

Implementors§