Skip to main content

serve

Function serve 

Source
pub async fn serve(
    store: Store,
    listen: SocketAddr,
    ready: impl FnOnce(SocketAddr) -> Result<(), String>,
    cancellation: CancellationToken,
) -> Result<(), String>
Expand description

Serve until cancelled; ready receives the bound address once listening.