pub struct ArpyResponse<T>(pub T);Expand description
A responder for RPC requests.
Use this to construct a response for an RPC request handler when you need
more control than RpcApp::http_rpc_route gives. See
actix_web::Responder for more details, and ArpyRequest for an
example.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> Responder for ArpyResponse<T>where
T: Serialize,
impl<T> Responder for ArpyResponse<T>where
T: Serialize,
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<T> Freeze for ArpyResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for ArpyResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ArpyResponse<T>where
T: Send,
impl<T> Sync for ArpyResponse<T>where
T: Sync,
impl<T> Unpin for ArpyResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for ArpyResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ArpyResponse<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