[][src]Trait sigs_slots::Slot

pub trait Slot<T> {
    fn consume(&mut self, event: &Event<T>);
}

Generic slot trait to be implemented by the object consuming the signals

Required methods

fn consume(&mut self, event: &Event<T>)

Consumes the event emitted by the signal(s) this slot is connected to

Arguments

  • 'event' - the event this slot is consuming
Loading content...

Implementors

Loading content...