pub trait ResponseService {
// Required method
fn register<'life0, 'async_trait>(
&'life0 self,
options: StreamOptions,
) -> Pin<Box<dyn Future<Output = PendingConnections> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A ResponseService implements a services in which a context a specific subject with will
be associated with a stream of responses.
Required Methods§
fn register<'life0, 'async_trait>(
&'life0 self,
options: StreamOptions,
) -> Pin<Box<dyn Future<Output = PendingConnections> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".