Skip to main content

serve

Function serve 

Source
pub async fn serve<C>(addr: SocketAddr, state: AppState<C>) -> Result<(), Error>
where C: ComputeBackend + Clone + Send + Sync + 'static,
Expand description

Bind addr and serve until the listener fails.