jetstream_server
Trait ListenerStream
pub trait ListenerStream:
Send
+ Sync
+ Debug
+ 'static {
type Stream: AsyncRead + AsyncWrite + Unpin + Send + Sync;
type Addr: Debug;
// Required method
fn accept<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(Self::Stream, Self::Addr)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}