Struct salvo::prelude::Service [−][src]
pub struct Service { /* fields omitted */ }
Expand description
Service http request.
Implementations
Create a new Service with a router.
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.
Get catchers list.
Set allowed media types list and returns Self for wite code chained.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Service
impl !UnwindSafe for Service
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more