Trait undo::Slot

source ·
pub trait Slot {
    // Required method
    fn emit(&mut self, signal: Signal);
}
Expand description

Use this to receive signals from History or Record.

Required Methods§

source

fn emit(&mut self, signal: Signal)

Receives a signal that describes the state change done to the data structures.

Implementors§

source§

impl Slot for Nop

source§

impl<F: FnMut(Signal)> Slot for F