[−][src]Trait kompact::component::ComponentLifecycle
A trait to customise handling of lifecycle events
This trait replaces the pre-v0.9 Provide<ControlPort>
requirement.
Provided methods
fn on_start(&mut self) -> Handled where
Self: 'static,
Self: 'static,
Gets invoked every time a component receives a Start event
The default implementation simply logs something at debug level.
fn on_stop(&mut self) -> Handled where
Self: 'static,
Self: 'static,
Gets invoked every time a component receives a Stop event
The default implementation simply logs something at debug level.
fn on_kill(&mut self) -> Handled where
Self: 'static,
Self: 'static,
Gets invoked every time a component receives a Kill event
The default implementation simply logs something at debug level.