Skip to main content

serve

Function serve 

Source
pub async fn serve(bound: Bound, config: ServeConfig) -> Result<(), AxError>
Expand description

Serves on a bound listener until the future is dropped.

The peer address is read on both faces, because enrolment is refused off this machine even when the listener never left it.

ยงErrors

Propagates the accept failures the operating system reports.