Skip to main content

serve

Function serve 

pub fn serve(
    door: OwnedFd,
    open: impl Fn(PendingWindow) -> bool + Send + 'static,
) -> Result<(), Error>
Expand description

Read door on a thread of its own, handing each request to open, until the shell closes it or open refuses (its loop is gone).

ยงErrors

The thread could not be started.