Struct minerva_rest::controller::handlers::DefaultError
source · [−]struct DefaultError {
status: Status,
}
Expand description
Default error structure implementing a Rocket responder for any status code.
Fields
status: Status
Status code for the error.
Trait Implementations
sourceimpl Responder<'_, 'static> for DefaultError
impl Responder<'_, 'static> for DefaultError
sourcefn respond_to(self, req: &Request<'_>) -> Result<'static>
fn respond_to(self, req: &Request<'_>) -> Result<'static>
Returns
Ok
if a Response
could be generated successfully. Otherwise,
returns an Err
with a failing Status
. Read moreAuto Trait Implementations
impl RefUnwindSafe for DefaultError
impl Send for DefaultError
impl Sync for DefaultError
impl Unpin for DefaultError
impl UnwindSafe for DefaultError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request