Struct httptest::matchers::ExecutionContext [−][src]
An ExecutionContext tracks how Matchers are chained together. There is a single public method called chain that when used to chain input from one matcher to another will allow tracking the flow of data across composable matchers.
Implementations
impl ExecutionContext
[src]
pub fn evaluate<M: ?Sized, I: ?Sized>(matcher: &mut M, input: &I) -> bool where
M: Matcher<I>,
I: Debug,
[src]
M: Matcher<I>,
I: Debug,
Evaluate the given matcher with the provided input.
pub fn chain<M: ?Sized, I: ?Sized>(
&mut self,
matcher: &mut M,
input: &I
) -> bool where
M: Matcher<I>,
I: Debug,
[src]
&mut self,
matcher: &mut M,
input: &I
) -> bool where
M: Matcher<I>,
I: Debug,
Invoke the provided matcher with the provided input. This is equivalent
to invoking matcher.matches(input)
, but allows tracking the execution
flow to provide better diagnostics about why a request did or did not
match a composed set of matchers.
Auto Trait Implementations
impl RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnwindSafe for ExecutionContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,