Trait ServiceWorker
Source pub trait ServiceWorker<UserData, FeaturesControl, FeaturesEvent, ServiceControl, ServiceEvent, ToController, ToWorker> {
// Required methods
fn is_service_empty(&self) -> bool;
fn service_id(&self) -> u8;
fn service_name(&self) -> &str;
fn on_tick(&mut self, _ctx: &ServiceWorkerCtx, _now: u64, _tick_count: u64);
fn on_input(
&mut self,
_ctx: &ServiceWorkerCtx,
_now: u64,
input: ServiceWorkerInput<UserData, FeaturesEvent, ServiceControl, ToWorker>,
);
fn on_shutdown(&mut self, _ctx: &ServiceWorkerCtx, _now: u64);
fn pop_output2(
&mut self,
_now: u64,
) -> Option<ServiceWorkerOutput<UserData, FeaturesControl, FeaturesEvent, ServiceControl, ServiceEvent, ToController>>;
}