Skip to main content

serve_with_registry

Function serve_with_registry 

Source
pub fn serve_with_registry(
    listener: &TcpListener,
    opts: &ServeOptions,
    registry: &Registry,
) -> Result<(), AppError>
Expand description

Like serve but routes through a caller-provided Registry, so the device-registration set is observable (used by tests to assert that a dead device is reaped; bd-86ab7a).

ยงErrors

Returns AppError::internal on a fatal accept error.