Skip to main content

HandshakeFn

Type Alias HandshakeFn 

Source
pub type HandshakeFn = Arc<Box<dyn Send + Sync + Fn(&Sender<Message>, &Receiver<Message>) -> HandshakeFnReturn + 'static>>;
Expand description

Shared closure invoked to perform a custom handshake negotiation using the supplied send/receive channels before the connection is considered ready.

Aliased Typeยง

pub struct HandshakeFn { /* private fields */ }