Skip to main content

spawn_private

Function spawn_private 

Source
pub fn spawn_private(
    addr: SocketAddr,
    handler: Handler,
    stop: Shutdown,
) -> Result<JoinHandle<()>>
Expand description

Serve handler on a private (RFC 1918) address that is not loopback, such as an org bridge’s, until stop (or a bind failure, returned at once). The caller’s handler decides who gets in: nothing about such an address keeps anyone out.