pub struct WithRequestCallback<S: Stack + ?Sized, Prev: Builder<S>, F>{ /* private fields */ }
Expand description
A request into which the user can populate a custom payload.
Implementations§
source§impl<S: Stack + ?Sized, Prev: Builder<S, Output = Result<(), ()>>, F1> WithRequestCallback<S, Prev, F1>
impl<S: Stack + ?Sized, Prev: Builder<S, Output = Result<(), ()>>, F1> WithRequestCallback<S, Prev, F1>
sourcepub fn processing_response_payload_through<O, F2>(
self,
f: F2
) -> ProcessingResponse<S, Self, O, F2>
pub fn processing_response_payload_through<O, F2>( self, f: F2 ) -> ProcessingResponse<S, Self, O, F2>
Provide the response payload to a user callback.
Trait Implementations§
source§impl<S: Stack + ?Sized, Prev: Builder<S>, F> Request<S> for WithRequestCallback<S, Prev, F>
impl<S: Stack + ?Sized, Prev: Builder<S>, F> Request<S> for WithRequestCallback<S, Prev, F>
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<'_>
) -> Result<Self::Carry, S::RequestUnionError>
async fn build_request( &mut self, req: &mut S::RequestMessage<'_> ) -> Result<Self::Carry, S::RequestUnionError>
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 WithRequestCallback<S, Prev, F>
impl<S: ?Sized, Prev, F> Send for WithRequestCallback<S, Prev, F>
impl<S: ?Sized, Prev, F> Sync for WithRequestCallback<S, Prev, F>
impl<S: ?Sized, Prev, F> Unpin for WithRequestCallback<S, Prev, F>
impl<S: ?Sized, Prev, F> UnwindSafe for WithRequestCallback<S, Prev, F>
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