[−][src]Struct jsonrpc_v2::With
Trait Implementations
impl<T, S, P> Method<S> for With<T, S, P> where
T: FromRequest<S> + 'static,
P: DeserializeOwned,
P: 'static + Send + Sync,
S: 'static + Send + Sync,
[src]
T: FromRequest<S> + 'static,
P: DeserializeOwned,
P: 'static + Send + Sync,
S: 'static + Send + Sync,
fn handle(
&self,
req: &WrappedRequestObject<S>
) -> Box<dyn Future<Item = Box<dyn ErasedSerialize + Send>, Error = Error>>
[src]
&self,
req: &WrappedRequestObject<S>
) -> Box<dyn Future<Item = Box<dyn ErasedSerialize + Send>, Error = Error>>
impl<S, P, FN, I, E, FS, T> From<FN> for With<T, S, P> where
T: FromRequest<S> + 'static,
S: 'static,
P: DeserializeOwned,
FN: Fn(Params<P>, T) -> I + 'static + Send + Sync,
I: IntoFuture<Item = FS, Error = E> + 'static,
I::Future: 'static,
FS: Serialize + Send + 'static,
E: Into<Error>,
[src]
T: FromRequest<S> + 'static,
S: 'static,
P: DeserializeOwned,
FN: Fn(Params<P>, T) -> I + 'static + Send + Sync,
I: IntoFuture<Item = FS, Error = E> + 'static,
I::Future: 'static,
FS: Serialize + Send + 'static,
E: Into<Error>,
Auto Trait Implementations
impl<T, S, P> Send for With<T, S, P> where
S: Send,
S: Send,
impl<T, S, P> Sync for With<T, S, P> where
S: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,