Trait rsocket_rust::transport::ServerTransport
source · pub trait ServerTransport {
type Item: Transport;
// Required methods
fn start<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn next<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Result<Self::Item>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}