Trait quic_rpc::message::RpcMsg

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

Shortcut to define just the return type for the very common RPC interaction pattern

Required Associated Types§

The type for the response

This is the only type that is required for the RPC interaction pattern.

Implementors§