Trait PrintCliResult

Source
pub trait PrintCliResult<Context: Context>: HandlerTypes {
    // Required method
    fn print(
        &self,
        handle_args: HandlerArgsFor<Context, Self>,
        result: Self::Ok,
    ) -> Result<(), Self::Err>;
}

Required Methods§

Source

fn print( &self, handle_args: HandlerArgsFor<Context, Self>, result: Self::Ok, ) -> Result<(), Self::Err>

Implementors§

Source§

impl<Context, F, Fut, T, E, Args> PrintCliResult<Context> for FromFnAsync<F, Fut, T, E, Args>
where Context: Context, Self: HandlerTypes, <Self as HandlerTypes>::Ok: Display,

Source§

impl<Context, F, T, E, Args> PrintCliResult<Context> for FromFn<F, T, E, Args>
where Context: Context, Self: HandlerTypes, <Self as HandlerTypes>::Ok: Display,

Source§

impl<Context, H> PrintCliResult<Context> for NoDisplay<H>

Source§

impl<Context, P, H> PrintCliResult<Context> for CustomDisplay<P, H>
where Context: Context, H: HandlerTypes, P: PrintCliResult<Context, Params = H::Params, InheritedParams = H::InheritedParams, Ok = H::Ok, Err = H::Err> + Send + Sync + Clone + 'static,

Source§

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

Source§

impl<F, H, Context> PrintCliResult<Context> for CustomDisplayFn<F, H, Context>
where Context: Context, H: HandlerTypes, F: Fn(HandlerArgsFor<Context, H>, H::Ok) -> Result<(), H::Err> + Send + Sync + Clone + 'static,