pub struct Response<'buf, Req: Request> {
pub read: <Req::Read as Query>::Output<'buf>,
pub write: <Req::Write as QueryMut>::Output<'buf>,
pub res_read: <Req::ResRead as ResQuery>::Output<'buf>,
pub res_write: <Req::ResWrite as ResQueryMut>::Output<'buf>,
pub ent_write: <Req::EntWrite as EntQueryMut>::Output<'buf>,
/* private fields */
}Expand description
A response corresponding to a Request.
Fields§
§read: <Req::Read as Query>::Output<'buf>§write: <Req::Write as QueryMut>::Output<'buf>§res_read: <Req::ResRead as ResQuery>::Output<'buf>§res_write: <Req::ResWrite as ResQueryMut>::Output<'buf>§ent_write: <Req::EntWrite as EntQueryMut>::Output<'buf>Auto Trait Implementations§
impl<'buf, Req> Freeze for Response<'buf, Req>where
<<Req as Request>::Read as Query>::Output<'buf>: Freeze,
<<Req as Request>::Write as QueryMut>::Output<'buf>: Freeze,
<<Req as Request>::ResRead as ResQuery>::Output<'buf>: Freeze,
<<Req as Request>::ResWrite as ResQueryMut>::Output<'buf>: Freeze,
<<Req as Request>::EntWrite as EntQueryMut>::Output<'buf>: Freeze,
impl<'buf, Req> !RefUnwindSafe for Response<'buf, Req>
impl<'buf, Req> !Send for Response<'buf, Req>
impl<'buf, Req> !Sync for Response<'buf, Req>
impl<'buf, Req> Unpin for Response<'buf, Req>where
<<Req as Request>::Read as Query>::Output<'buf>: Unpin,
<<Req as Request>::Write as QueryMut>::Output<'buf>: Unpin,
<<Req as Request>::ResRead as ResQuery>::Output<'buf>: Unpin,
<<Req as Request>::ResWrite as ResQueryMut>::Output<'buf>: Unpin,
<<Req as Request>::EntWrite as EntQueryMut>::Output<'buf>: Unpin,
impl<'buf, Req> !UnwindSafe for Response<'buf, Req>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more