Struct warp::reply::WithStatus
source · [−]pub struct WithStatus<T> { /* private fields */ }
Expand description
Wrap an impl Reply
to change its StatusCode
.
Returned by warp::reply::with_status
.
Trait Implementations
sourceimpl<T: Debug> Debug for WithStatus<T>
impl<T: Debug> Debug for WithStatus<T>
sourceimpl<T: Reply> Reply for WithStatus<T>
impl<T: Reply> Reply for WithStatus<T>
sourcefn into_response(self) -> Response
fn into_response(self) -> Response
Auto Trait Implementations
impl<T> RefUnwindSafe for WithStatus<T> where
T: RefUnwindSafe,
impl<T> Send for WithStatus<T> where
T: Send,
impl<T> Sync for WithStatus<T> where
T: Sync,
impl<T> Unpin for WithStatus<T> where
T: Unpin,
impl<T> UnwindSafe for WithStatus<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self