pub struct AxumResponse<S: ResponseCode = StatusCode>(/* private fields */);
Expand description
An HTTP response for axum
.
Trait Implementations§
Source§impl<S: ResponseCode> From<Response<S>> for AxumResponse<S>
impl<S: ResponseCode> From<Response<S>> for AxumResponse<S>
Source§impl<S: ResponseCode> IntoResponse for AxumResponse<S>
impl<S: ResponseCode> IntoResponse for AxumResponse<S>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<S = StatusCode> !Freeze for AxumResponse<S>
impl<S> RefUnwindSafe for AxumResponse<S>where
<S as ResponseCode>::ErrorCode: RefUnwindSafe,
<S as ResponseCode>::BusinessCode: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for AxumResponse<S>
impl<S> Sync for AxumResponse<S>
impl<S> Unpin for AxumResponse<S>
impl<S> UnwindSafe for AxumResponse<S>where
<S as ResponseCode>::ErrorCode: UnwindSafe,
<S as ResponseCode>::BusinessCode: UnwindSafe,
S: 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