Trait Handler

Source
pub trait Handler<Inherited> {
    type H: HandlerTypes;

    // Required method
    fn handler_for<C: Context>(self) -> Option<DynHandler<C, Inherited>>;
}

Required Associated Types§

Required Methods§

Source

fn handler_for<C: Context>(self) -> Option<DynHandler<C, Inherited>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Context, H, Inherited, RemoteContext> Handler<Inherited> for WithContext<Context, RemoteCaller<Context, RemoteContext, H>>
where Context: Context + CallRemote<RemoteContext>, RemoteContext: Context, H: HandlerFor<RemoteContext> + CliBindings<Context>, H::Ok: Serialize + DeserializeOwned, H::Err: From<RpcError>, H::Params: Serialize + DeserializeOwned, H::InheritedParams: OrEmpty<Inherited>, RpcError: From<H::Err>, Inherited: Send + Sync + 'static,

Source§

type H = H

Source§

impl<Context, Inherited, H> Handler<Inherited> for WithContext<Context, H>
where Context: Context, H: HandlerFor<Context> + CliBindings<Context>, H::Ok: Serialize + DeserializeOwned, H::Params: DeserializeOwned, H::InheritedParams: OrEmpty<Inherited>, RpcError: From<H::Err>, Inherited: Send + Sync + 'static,

Source§

type H = H