Trait quic_rpc_utils::BidiStreamingMsg

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

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

Required Associated Types§

source

type Update: Into<<S as Service>::Req> + TryFrom<<S as Service>::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 as Service>::Res> + TryFrom<<S as Service>::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§