Skip to main content

FallbackConnHandler

Type Alias FallbackConnHandler 

Source
pub type FallbackConnHandler = Box<dyn FnOnce(TcpStream) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send>;
Expand description

Per-connection handler returned by a fallback callback that claims a flow. Consumes the accepted overlay TcpStream and returns a future the manager spawns. Mirrors the func(net.Conn) Go tsnet returns from its fallback callback.

Aliased Typeยง

pub struct FallbackConnHandler(/* private fields */);