quic_rpc::pattern::server_streaming

Trait ServerStreamingMsg

Source
pub trait ServerStreamingMsg<S: Service>: Msg<S, Pattern = ServerStreaming> {
    type Response: Into<S::Res> + TryFrom<S::Res> + Send + 'static;
}
Expand description

Defines response type for a server streaming message.

Required Associated Types§

Source

type Response: Into<S::Res> + TryFrom<S::Res> + Send + 'static

The type for the response

For requests that can produce errors, this can be set to Result<T, E>.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§