Skip to main content

ForegroundServiceObject

Trait ForegroundServiceObject 

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

Required Methods§

Source

fn update(&mut self, ctx: &Context<'_>, event: &Event) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<_ErasedPtr> ForegroundServiceObject for ForegroundServiceObject_TO<_ErasedPtr>
where Self: Send + 'static, _ErasedPtr: AsMutPtr<PtrTarget = ()>,