pub trait TypedOpenClose {
// Required methods
fn open_typed<'life0, 'async_trait>(
&'life0 mut self,
typ: StreamType,
) -> Pin<Box<dyn Future<Output = Result<TypedStream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 mut self,
error: Error,
msg: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Typed analogue to the [Open] trait.
Required Methods§
Sourcefn open_typed<'life0, 'async_trait>(
&'life0 mut self,
typ: StreamType,
) -> Pin<Box<dyn Future<Output = Result<TypedStream, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_typed<'life0, 'async_trait>(
&'life0 mut self,
typ: StreamType,
) -> Pin<Box<dyn Future<Output = Result<TypedStream, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Open a typed stream with the given type.