pub trait EffectSink {
// Required methods
fn request_redraw(&mut self, window: AppWindowId);
fn push_effect(&mut self, effect: Effect);
}Required Methods§
Sourcefn request_redraw(&mut self, window: AppWindowId)
fn request_redraw(&mut self, window: AppWindowId)
Requests a redraw for the given window.
Sourcefn push_effect(&mut self, effect: Effect)
fn push_effect(&mut self, effect: Effect)
Enqueues a runtime effect to be handled by the runner/backend.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".