Skip to main content

ForegroundService

Trait ForegroundService 

Source
pub trait ForegroundService: Send + 'static {
    // Required methods
    fn new(ctx: &Context<'_>) -> Self;
    fn update(&mut self, ctx: &Context<'_>, event: &Event) -> bool;
}

Required Methods§

Source

fn new(ctx: &Context<'_>) -> Self

Source

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".

Implementors§