[−][src]Function httptest::responders::from_fn
pub fn from_fn<F, B>(f: F) -> FnResponder<F, B> where
F: FnMut() -> B + Clone + Send + 'static,
B: Responder,
Respond with the response returned from the provided function.
pub fn from_fn<F, B>(f: F) -> FnResponder<F, B> where
F: FnMut() -> B + Clone + Send + 'static,
B: Responder,
Respond with the response returned from the provided function.