Trait ExecutionControllerClientHandler

Source
pub trait ExecutionControllerClientHandler<___T: Transport = Channel> {
    // Required method
    fn on_stop(
        &mut self,
        sender: &ClientSender<ExecutionController, ___T>,
        event: Response<OnStop, ___T>,
    ) -> impl Future<Output = ()> + Send;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        sender: &ClientSender<ExecutionController, ___T>,
        ordinal: u64,
    ) -> impl Future<Output = ()> + Send { ... }
}
Expand description

A client handler for the ExecutionController protocol.

See ExecutionController for more details.

Required Methods§

Source

fn on_stop( &mut self, sender: &ClientSender<ExecutionController, ___T>, event: Response<OnStop, ___T>, ) -> impl Future<Output = ()> + Send

When the child is stopped due to Stop being called, the child exiting on its own, or for any other reason, OnStop is called and then this channel is closed.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, sender: &ClientSender<ExecutionController, ___T>, ordinal: u64, ) -> impl Future<Output = ()> + Send

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§