Trait tinychain::gateway::Server

source ·
pub trait Server {
    type Error: Error;

    // Required method
    fn listen<'async_trait>(
        self,
        port: u16
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

A server used by Gateway.

Required Associated Types§

Required Methods§

source

fn listen<'async_trait>( self, port: u16 ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Handle incoming requests.

Implementors§