Trait ExecutionControllerServerHandler

Source
pub trait ExecutionControllerServerHandler<___T: Transport> {
    // Required method
    fn stop(
        &mut self,
        sender: &ServerSender<ExecutionController, ___T>,
    ) -> impl Future<Output = ()> + Send;

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

A server handler for the ExecutionController protocol.

See ExecutionController for more details.

Required Methods§

Source

fn stop( &mut self, sender: &ServerSender<ExecutionController, ___T>, ) -> impl Future<Output = ()> + Send

Initiates a stop action on this component. Once complete, OnStop will be called with the stopped payload and this channel is closed.

Note that a component may stop running on its own at any time, so it is possible for OnStop to be received before Stop is called.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, sender: &ServerSender<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§