Trait quic_rpc::pattern::bidi_streaming::BidiStreamingMsg

source ·
pub trait BidiStreamingMsg<S: Service>: Msg<S, Pattern = BidiStreaming> {
    type Update: Into<S::Req> + TryFrom<S::Req> + Send + 'static;
    type Response: Into<S::Res> + TryFrom<S::Res> + Send + 'static;
}
Expand description

Defines update type and response type for a bidi streaming message.

Required Associated Types§

source

type Update: Into<S::Req> + TryFrom<S::Req> + Send + 'static

The type for request updates

For a request that does not support updates, this can be safely set to any type, including the message type itself. Any update for such a request will result in an error.

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>.

Object Safety§

This trait is not object safe.

Implementors§