Skip to main content

Presenter

Trait Presenter 

Source
pub trait Presenter: Send + Sync {
    // Required methods
    fn show(&self, n: &Notification);
    fn retract(&self, tag: &str);
    fn clear_all(&self);

    // Provided method
    fn update(&self, _tag: &str, _update: &CountdownUpdate) { ... }
}
Expand description

A platform notification surface.

Required Methods§

Source

fn show(&self, n: &Notification)

Source

fn retract(&self, tag: &str)

Source

fn clear_all(&self)

Provided Methods§

Source

fn update(&self, _tag: &str, _update: &CountdownUpdate)

Redraw the live toast tag for one tick of its countdown. Only a backend that can show a countdown does anything.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§