quic_rpc

Trait ServiceConnection

Source
pub trait ServiceConnection<S: Service>: Connection<S::Res, S::Req> { }
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.

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§

Source§

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