Skip to main content

serve

Function serve 

Source
pub fn serve<S>(
    endpoint: IrohEndpoint,
    options: ServeOptions,
    svc: S,
) -> ServeHandle
where S: Service<Request<Body>, Response = Response<Body>, Error = Infallible> + Clone + Send + Sync + 'static, S::Future: Send + 'static,
Expand description

Pure-Rust serve entry — convenience 3-arg wrapper that omits the connection-event callback. Equivalent to serve_with_events(ep, opts, svc, None).