pub trait UidMux<Id> {
type Stream: AsyncWrite + AsyncRead + Send + Sync + Unpin + 'static;
type Error;
// Required method
fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Id,
) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
A multiplexer that opens streams with unique ids.