Trait tinychain::gateway::Server[][src]

pub trait Server {
    type Error: Error;
#[must_use]    fn listen<'async_trait>(
        self,
        addr: SocketAddr
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }

A server used by Gateway.

Associated Types

Loading content...

Required methods

#[must_use]fn listen<'async_trait>(
    self,
    addr: SocketAddr
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

Handle incoming requests.

Loading content...

Implementors

Loading content...