pub struct FnResponseExtractor<F> { /* private fields */ }Expand description
A function to extract only the necessary data from Response. For example, using this you could ignore body if you don’t need them.
Implementations§
Source§impl<F, T> FnResponseExtractor<F>
impl<F, T> FnResponseExtractor<F>
pub fn from_fn(function: F) -> FnResponseExtractor<F>
Trait Implementations§
Source§impl<F, T> ResponseExtractor for FnResponseExtractor<F>
impl<F, T> ResponseExtractor for FnResponseExtractor<F>
Source§fn extract(
self,
event: &HttpCallResponse,
buffers: &dyn ResponseBuffers,
) -> Self::Output
fn extract( self, event: &HttpCallResponse, buffers: &dyn ResponseBuffers, ) -> Self::Output
Extracts the Response from their low-level components
Auto Trait Implementations§
impl<F> Freeze for FnResponseExtractor<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnResponseExtractor<F>where
F: RefUnwindSafe,
impl<F> Send for FnResponseExtractor<F>where
F: Send,
impl<F> Sync for FnResponseExtractor<F>where
F: Sync,
impl<F> Unpin for FnResponseExtractor<F>where
F: Unpin,
impl<F> UnwindSafe for FnResponseExtractor<F>where
F: 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