Trait quic_rpc_utils::ServiceConnection

source ·
pub trait ServiceConnection<S>: Connection<<S as Service>::Res, <S as Service>::Req>
where S: Service,
{ }
Expand description

A connection to a specific service on a specific remote machine

This is just a trait alias for a Connection with the right types.

This can be used to create a RpcClient that can be used to send requests.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, S> ServiceConnection<S> for T
where T: Connection<<S as Service>::Res, <S as Service>::Req>, S: Service,