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
.