Trait quic_rpc_utils::Msg

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

Declares the interaction pattern for a message and a service.

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

Required Associated Types§

source

type Pattern: InteractionPattern

The interaction pattern for this message with this service.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, S> Msg<S> for T
where T: RpcMsg<S>, S: Service,

We can only do this for one trait, so we do it for RpcMsg since it is the most common

§

type Pattern = Rpc