pub trait ComponentRunnerServerHandler<___T: Transport> {
// Required method
fn start(
&mut self,
sender: &ServerSender<ComponentRunner, ___T>,
request: Request<Start, ___T>,
) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
sender: &ServerSender<ComponentRunner, ___T>,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}
Expand description
A server handler for the ComponentRunner protocol.
See ComponentRunner
for more details.
Required Methods§
Sourcefn start(
&mut self,
sender: &ServerSender<ComponentRunner, ___T>,
request: Request<Start, ___T>,
) -> impl Future<Output = ()> + Send
fn start( &mut self, sender: &ServerSender<ComponentRunner, ___T>, request: Request<Start, ___T>, ) -> impl Future<Output = ()> + Send
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§
fn on_unknown_interaction( &mut self, sender: &ServerSender<ComponentRunner, ___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.