Struct httptest::matchers::ExecutionContext[][src]

pub struct ExecutionContext { /* fields omitted */ }

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]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.