with.rs
SHA-256f82ef40808c701ad3f156f2b18a97ccc1a5bafc219c185518f2b91ba0997a2d6
Malecule∅
Evidence
1use futures::{Async, Future, Poll};
2use std::marker::PhantomData;
3use std::rc::Rc;
4
5use error::Error;
6use handler::{AsyncResult, AsyncResultItem, FromRequest, Handler, Responder};
7use httprequest::HttpRequest;
8use httpresponse::HttpResponse;
9
10trait FnWith<T, R>: 'static {
11 fn call_with(self: &Self, T) -> R;
12}
13
14impl<T, R, F: Fn(T) -> R + 'static> FnWith<T, R> for F {
15 #[cfg_attr(feature = "cargo-clippy", allow(boxed_local))]
16 fn call_with(self: &Sel …
24:22… ,
25 R: Responder,
26{
27 fn create(self) -> With<T, S, R>;
28
29 fn create_with_config(self, T::Config) -> With<T, S, R>;
30}
31
32#[doc(hidden)]
…