quic_rpc

Trait ServiceEndpoint

Source
pub trait ServiceEndpoint<S: Service>: ServerEndpoint<S::Req, S::Res> { }
Expand description

A server endpoint for a specific service

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

This can be used to create a RpcServer that can be used to handle 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: ServerEndpoint<S::Req, S::Res>, S: Service> ServiceEndpoint<S> for T