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§
source§impl<T: Debug> Debug for WithStatus<T>
impl<T: Debug> Debug for WithStatus<T>
source§impl<T: Reply> Reply for WithStatus<T>
impl<T: Reply> Reply for WithStatus<T>
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Converts the given value into a
Response
.Auto Trait Implementations§
impl<T> Freeze for WithStatus<T>where
T: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more