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§
Provided Methods§
Sourcefn update(&self, _tag: &str, _update: &CountdownUpdate)
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".