Trait AuxDataReply

Source
pub(crate) trait AuxDataReply<H>
where H: ServerHandshake + ?Sized,
{ // Required method fn reply(&mut self, msg: &H::ClientAuxData) -> Option<H::ServerAuxData>; }
Expand description

Trait for an object that handles incoming auxiliary data and returns the server’s auxiliary data to be included in the reply.

This is implemented for FnMut(&H::ClientAuxData) -> Option<H::ServerAuxData> automatically.

Required Methods§

Source

fn reply(&mut self, msg: &H::ClientAuxData) -> Option<H::ServerAuxData>

Given a list of extensions received from a client, decide what extensions to send in reply.

Return None if the handshake should fail.

Implementors§

Source§

impl<F, H> AuxDataReply<H> for F