Trait noir::MockProvider [] [src]

pub trait MockProvider: Send {
    fn setup(&mut self);
    fn teardown(&mut self);
}

A trait for implementation of a custom mock provider.

Required Methods

fn setup(&mut self)

Called before each individual HttpRequest in a test is send.

fn teardown(&mut self)

Called after each individual HttpRequest in a test has completed.

Implementors