Struct salvo_core::Service [−][src]
pub struct Service { /* fields omitted */ }
Implementations
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.
pub fn with_allowed_media_types<T>(self, allowed_media_types: T) -> Self where
T: Into<Arc<Vec<Mime>>>,
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