pub trait ServerExt: Send {
type Session: SessionExt;
type Params: Send + Debug;
fn accept<'life0, 'async_trait>(
&'life0 mut self,
socket: Socket,
address: SocketAddr,
args: <Self::Session as SessionExt>::Args
) -> Pin<Box<dyn Future<Output = Result<Session<<Self::Session as SessionExt>::ID, <Self::Session as SessionExt>::Params>, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn disconnected<'life0, 'async_trait>(
&'life0 mut self,
id: <Self::Session as SessionExt>::ID
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn call<'life0, 'async_trait>(
&'life0 mut self,
params: Self::Params
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}