Trait ServerStreamingService
pub trait ServerStreamingService<R>:
Send
+ Sync
+ 'static {
type Response;
type ResponseStream: Stream<Item = Result<Self::Response, Status>>;
// Required method
fn serve(
&self,
request: Request<R>,
) -> impl Future<Output = Result<Response<Self::ResponseStream>, Status>>;
}Available on crate features
grpc and http only.Expand description
Required Associated Types§
type Response
type Response
Protobuf response message type
type ResponseStream: Stream<Item = Result<Self::Response, Status>>
type ResponseStream: Stream<Item = Result<Self::Response, Status>>
Stream of outbound response messages
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".