pub struct WritingRequest<S: Stack + ?Sized, Prev: Builder<S>, F>where
F: Fn(&mut S::RequestMessage<'_>),{ /* private fields */ }Expand description
A request into which the user can populate a custom payload.
Trait Implementations§
source§impl<S: Stack + ?Sized, Prev: Builder<S>, F> Request<S> for WritingRequest<S, Prev, F>where
F: Fn(&mut S::RequestMessage<'_>),
impl<S: Stack + ?Sized, Prev: Builder<S>, F> Request<S> for WritingRequest<S, Prev, F>where F: Fn(&mut S::RequestMessage<'_>),
type Carry = <Prev as Request<S>>::Carry
type Output = <Prev as Request<S>>::Output
source§async fn build_request(
&mut self,
req: &mut S::RequestMessage<'_>
) -> Self::Carry
async fn build_request( &mut self, req: &mut S::RequestMessage<'_> ) -> Self::Carry
Build the request message Read more
source§async fn process_response(
&mut self,
res: &S::ResponseMessage<'_>,
carry: Self::Carry
) -> Self::Output
async fn process_response( &mut self, res: &S::ResponseMessage<'_>, carry: Self::Carry ) -> Self::Output
Process the response message Read more
Auto Trait Implementations§
impl<S: ?Sized, Prev, F> RefUnwindSafe for WritingRequest<S, Prev, F>where F: RefUnwindSafe, Prev: RefUnwindSafe, S: RefUnwindSafe,
impl<S: ?Sized, Prev, F> Send for WritingRequest<S, Prev, F>where F: Send, Prev: Send, S: Send,
impl<S: ?Sized, Prev, F> Sync for WritingRequest<S, Prev, F>where F: Sync, Prev: Sync, S: Sync,
impl<S: ?Sized, Prev, F> Unpin for WritingRequest<S, Prev, F>where F: Unpin, Prev: Unpin, S: Unpin,
impl<S: ?Sized, Prev, F> UnwindSafe for WritingRequest<S, Prev, F>where F: UnwindSafe, Prev: 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