Trait quic_rpc::message::Msg

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

Defines interaction pattern, update type and return type for a RPC message

For each server and each message, only one interaction pattern can be defined.

Required Associated Types§

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.

The type for the response

The interaction pattern for this message with this service.

Implementors§