Trait ClientStreamingMsg

Source
pub trait ClientStreamingMsg<S>: Msg<S, Pattern = ClientStreaming>
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 client 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>.

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§