pub trait ServerLayer<In, Out>:
Send
+ Sync
+ Clone {
// Required method
fn handshake(&self, input: In) -> impl Future<Output = Result<Out>> + Send;
}Expand description
Server-side middleware layer. Upgrades an accepted input via handshake.
Same generic pattern as ClientLayer.
Required 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.