pub trait EffectSink {
// Required method
fn dispatch(&mut self, cmd: Cmd);
}Expand description
Where a reducer-emitted Cmd goes.
The live sink is EffectRunner; --replay uses DropEffects. It is
also the interception point for commands a specific driver owns rather than
the effect layer — the interactive loop’s Cmd::ComposeInEditor suspends
the terminal and the crossterm event stream, which only that loop holds.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".