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. The key difference between a ResponseService
and a [RequestService
] is that the ResponseService
is the awaits an explicit connection
to be established, where as a [RequestService
] has no known knowledge about incoming
connections. All ResponseService
connections are expected, all [RequestService
] connections
are unexpected.