ConnectionHandler

Trait ConnectionHandler 

Source
pub trait ConnectionHandler<T>: Send + Sync {
    type Context: Send;

    // Required methods
    fn verify(
        &self,
        hello: &ClientHello,
    ) -> Result<Self::Context, HandshakeError>;
    fn accept(&self, output: Self::Context, connection: ConnectionHandle<T>);
}

Required Associated Types§

Required Methods§

Source

fn verify(&self, hello: &ClientHello) -> Result<Self::Context, HandshakeError>

Source

fn accept(&self, output: Self::Context, connection: ConnectionHandle<T>)

Implementations on Foreign Types§

Source§

impl<T> ConnectionHandler<T> for Secret

Source§

type Context = ()

Source§

fn verify(&self, hello: &ClientHello) -> Result<(), HandshakeError>

Source§

fn accept(&self, _output: Self::Context, _connection: ConnectionHandle<T>)

Implementors§