pub trait ServerSpec {
    fn address(&self) -> SocketAddr;

    fn builder(&self) -> Builder<AddrIncoming> { ... }
    fn serve<'life0, 'async_trait>(
        &'life0 self,
        client: Router
    ) -> Pin<Box<dyn Future<Output = AsyncResult> + Send + 'async_trait>>
    where
        Self: Sync + 'async_trait,
        'life0: 'async_trait
, { ... } }

Required Methods§

Fetch an instance of a std::net::SocketAddr

Provided Methods§

Creates a new builder instance with the address created from the given port

Implementors§