quic_rpc

Trait Connector

Source
pub trait Connector<S: Service>: Connector<In = S::Res, Out = S::Req> { }
Expand description

A connector to a specific service

This is just a trait alias for a transport::Connector with the right types. It is used to make it easier to specify the bounds of a connector that matches a specific service.

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: Connector<In = S::Res, Out = S::Req>, S: Service> Connector<S> for T