pub trait ConnectionHandler<T>: Send + Sync {
type Context: Send;
// Required methods
fn verify(
&self,
hello: &ClientHello,
) -> impl Future<Output = Result<Self::Context, HandshakeError>> + Send;
fn accept(
&self,
output: Self::Context,
connection: ConnectionHandle<T>,
) -> impl Future<Output = ()> + Send;
}Required Associated Types§
Required Methods§
fn verify( &self, hello: &ClientHello, ) -> impl Future<Output = Result<Self::Context, HandshakeError>> + Send
fn accept( &self, output: Self::Context, connection: ConnectionHandle<T>, ) -> impl Future<Output = ()> + Send
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.