pub struct Service { /* fields omitted */ }
when the response code is 400-600 and the body is empty, capture and set the return value.
By default, it is the built-in default html page.
Responses given by the service.
Errors produced by the service.
The future response value.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,