pub trait Server:
Clone
+ Send
+ Sync
+ 'static {
// Required method
fn make_response(
self,
req: RpcFrame,
) -> BoxFuture<'static, Result<RpcFrame>>;
// Provided method
fn serve(
self,
transport: Transport,
) -> BoxStream<'static, BoxFuture<'static, ()>> { ... }
}Required Methods§
Provided Methods§
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.