Struct salvo_core::http::errors::http_error::HttpError [−][src]
pub struct HttpError { pub code: StatusCode, pub name: String, pub summary: Option<String>, pub detail: Option<String>, }
Fields
code: StatusCode
name: String
summary: Option<String>
detail: Option<String>
Implementations
impl HttpError
[src]
impl HttpError
[src]pub fn with_summary(self, summary: impl Into<String>) -> Self
[src]
pub fn with_detail(self, detail: impl Into<String>) -> Self
[src]
Trait Implementations
impl Writer for HttpError
[src]
impl Writer for HttpError
[src]Auto Trait Implementations
impl RefUnwindSafe for HttpError
impl RefUnwindSafe for HttpError
impl UnwindSafe for HttpError
impl UnwindSafe for HttpError
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,