Trait madsim_tonic::server::ServerStreamingService
source · [−]pub trait ServerStreamingService<R> {
type Response;
type ResponseStream: Stream
where
<Self::ResponseStream as Stream>::Item == Result<Self::Response, Status>;
type Future: Future
where
<Self::Future as Future>::Output == Result<Response<Self::ResponseStream>, Status>;
fn call(&mut self, request: Request<R>) -> Self::Future;
}
Expand description
A specialization of tower_service::Service.
Existing tower_service::Service implementations with the correct form will
automatically implement ServerStreamingService
.
Required Associated Types
type ResponseStream: Stream
where
<Self::ResponseStream as Stream>::Item == Result<Self::Response, Status>
type ResponseStream: Stream
where
<Self::ResponseStream as Stream>::Item == Result<Self::Response, Status>
Stream of outbound response messages