pub trait StreamingService<R> {
type Response;
type ResponseStream: Stream<Item = Result<Self::Response, Status>>;
type Future: Future<Output = Result<Response<Self::ResponseStream>, Status>>;
// Required method
fn call(&mut self, request: Request<Streaming<R>>) -> Self::Future;
}Expand description
A specialization of tower_service::Service.
Existing tower_service::Service implementations with the correct form will
automatically implement StreamingService.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".