pub trait ForegroundService: Send + 'static {
// Required methods
fn new(ctx: &Context<'_>) -> Self;
fn update(&mut self, ctx: &Context<'_>, event: &Event) -> bool;
}Required Methods§
fn new(ctx: &Context<'_>) -> Self
fn update(&mut self, ctx: &Context<'_>, event: &Event) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".