pub struct ActixResponse<S: ResponseCode = StatusCode>(/* private fields */);
Expand description
An HTTP response for actix-web
.
Trait Implementations§
Source§impl<S: ResponseCode> From<Response<S>> for ActixResponse<S>
impl<S: ResponseCode> From<Response<S>> for ActixResponse<S>
Source§impl<S: ResponseCode> Responder for ActixResponse<S>
impl<S: ResponseCode> Responder for ActixResponse<S>
type Body = BoxBody
Source§fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse
.Auto Trait Implementations§
impl<S = StatusCode> !Freeze for ActixResponse<S>
impl<S> RefUnwindSafe for ActixResponse<S>where
<S as ResponseCode>::ErrorCode: RefUnwindSafe,
<S as ResponseCode>::BusinessCode: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for ActixResponse<S>
impl<S> Sync for ActixResponse<S>
impl<S> Unpin for ActixResponse<S>
impl<S> UnwindSafe for ActixResponse<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