Trait HandlerTypes

Source
pub trait HandlerTypes {
    type Params: Send + Sync;
    type InheritedParams: Send + Sync;
    type Ok: Send + Sync;
    type Err: Send + Sync;
}

Required Associated Types§

Implementors§

Source§

impl<Context, F, Fut, T, E> HandlerTypes for FromFnAsync<F, Fut, T, E, (Context,)>
where Context: Context, F: Fn(Context) -> Fut + Send + Sync + Clone + 'static, Fut: Future<Output = Result<T, E>> + Send + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

impl<Context, F, Fut, T, E, Params> HandlerTypes for FromFnAsync<F, Fut, T, E, (Context, Params)>
where Context: Context, F: Fn(Context, Params) -> Fut + Send + Sync + Clone + 'static, Fut: Future<Output = Result<T, E>> + Send + 'static, Params: DeserializeOwned + Send + Sync + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

impl<Context, F, Fut, T, E, Params, InheritedParams> HandlerTypes for FromFnAsync<F, Fut, T, E, (Context, Params, InheritedParams)>
where Context: Context, F: Fn(Context, Params, InheritedParams) -> Fut + Send + Sync + Clone + 'static, Fut: Future<Output = Result<T, E>> + Send + 'static, Params: DeserializeOwned + Send + Sync + 'static, InheritedParams: Send + Sync + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

type Params = Params

Source§

type InheritedParams = InheritedParams

Source§

type Ok = T

Source§

type Err = E

Source§

impl<Context, F, T, E> HandlerTypes for FromFn<F, T, E, (Context,)>
where Context: Context, F: Fn(Context) -> Result<T, E> + Send + Sync + Clone + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

impl<Context, F, T, E, Params> HandlerTypes for FromFn<F, T, E, (Context, Params)>
where Context: Context, F: Fn(Context, Params) -> Result<T, E> + Send + Sync + Clone + 'static, Params: DeserializeOwned + Send + Sync + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

impl<Context, F, T, E, Params, InheritedParams> HandlerTypes for FromFn<F, T, E, (Context, Params, InheritedParams)>
where Context: Context, F: Fn(Context, Params, InheritedParams) -> Result<T, E> + Send + Sync + Clone + 'static, Params: DeserializeOwned + Send + Sync + 'static, InheritedParams: Send + Sync + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

type Params = Params

Source§

type InheritedParams = InheritedParams

Source§

type Ok = T

Source§

type Err = E

Source§

impl<Context, Params, InheritedParams> HandlerTypes for ParentHandler<Context, Params, InheritedParams>
where Params: Send + Sync, InheritedParams: Send + Sync,

Source§

type Params = Params

Source§

type InheritedParams = InheritedParams

Source§

type Ok = Value

Source§

type Err = RpcError

Source§

impl<Context, RemoteContext, RemoteHandler, Extra> HandlerTypes for CallRemoteHandler<Context, RemoteContext, RemoteHandler, Extra>
where RemoteHandler: HandlerTypes, RemoteHandler::Params: Serialize, RemoteHandler::Ok: DeserializeOwned, RemoteHandler::Err: From<RpcError>, Extra: Send + Sync + 'static,

Source§

type Params = Flat<<RemoteHandler as HandlerTypes>::Params, Extra>

Source§

type InheritedParams = <RemoteHandler as HandlerTypes>::InheritedParams

Source§

type Ok = <RemoteHandler as HandlerTypes>::Ok

Source§

type Err = <RemoteHandler as HandlerTypes>::Err

Source§

impl<F, Fut, T, E> HandlerTypes for FromFnAsync<F, Fut, T, E, ()>
where F: Fn() -> Fut + Send + Sync + Clone + 'static, Fut: Future<Output = Result<T, E>> + Send + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

impl<F, Fut, T, E, Context, Params, InheritedParams> HandlerTypes for FromFnAsync<F, Fut, T, E, HandlerArgs<Context, Params, InheritedParams>>
where F: Fn(HandlerArgs<Context, Params, InheritedParams>) -> Fut + Send + Sync + Clone + 'static, Fut: Future<Output = Result<T, E>> + Send + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static, Context: Context, Params: Send + Sync, InheritedParams: Send + Sync,

Source§

type Params = Params

Source§

type InheritedParams = InheritedParams

Source§

type Ok = T

Source§

type Err = E

Source§

impl<F, H, Context> HandlerTypes for CustomDisplayFn<F, H, Context>
where H: HandlerTypes,

Source§

impl<F, T, E> HandlerTypes for FromFn<F, T, E, ()>
where F: Fn() -> Result<T, E> + Send + Sync + Clone + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static,

Source§

impl<F, T, E, Context, Params, InheritedParams> HandlerTypes for FromFn<F, T, E, HandlerArgs<Context, Params, InheritedParams>>
where F: Fn(HandlerArgs<Context, Params, InheritedParams>) -> Result<T, E> + Send + Sync + Clone + 'static, T: Send + Sync + 'static, E: Send + Sync + 'static, Context: Context, Params: Send + Sync, InheritedParams: Send + Sync,

Source§

type Params = Params

Source§

type InheritedParams = InheritedParams

Source§

type Ok = T

Source§

type Err = E

Source§

impl<H: HandlerTypes> HandlerTypes for NoCli<H>

Source§

impl<H: HandlerTypes> HandlerTypes for NoDisplay<H>

Source§

impl<M, H> HandlerTypes for WithAbout<M, H>
where H: HandlerTypes,

Source§

impl<P, H> HandlerTypes for CustomDisplay<P, H>
where H: HandlerTypes,

Source§

impl<Params, InheritedParams, H, F> HandlerTypes for InheritanceHandler<Params, InheritedParams, H, F>
where H: HandlerTypes, Params: Send + Sync, InheritedParams: Send + Sync,

Source§

type Params = <H as HandlerTypes>::Params

Source§

type InheritedParams = Flat<Params, InheritedParams>

Source§

type Ok = <H as HandlerTypes>::Ok

Source§

type Err = <H as HandlerTypes>::Err