Trait ComponentRunnerServerHandler

Source
pub trait ComponentRunnerServerHandler<___T: Transport> {
    // Required method
    fn start(
        &mut self,
        sender: &ServerSender<___T, ComponentRunner>,
        request: RequestBuffer<___T, Start>,
    );

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        sender: &ServerSender<___T, ComponentRunner>,
        ordinal: u64,
    ) { ... }
}
Expand description

A server handler for the ComponentRunner protocol.

See ComponentRunner for more details.

Required Methods§

Source

fn start( &mut self, sender: &ServerSender<___T, ComponentRunner>, request: RequestBuffer<___T, Start>, )

Start running a component instance described by start_info.

Component manager binds and uses controller to control the lifetime of the newly started component instance.

Errors are delivered as epitaphs over the ComponentController protocol. In the event of an error, the runner must ensure that resources are cleaned up.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, sender: &ServerSender<___T, ComponentRunner>, ordinal: u64, )

Implementors§