Function sauron::on [−][src]
pub fn on<F, MSG>(
event_name: &'static str,
f: F
) -> Attribute<&'static str, &'static str, AttributeValue<MSG>> where
MSG: 'static,
F: Fn(Event) -> MSG + 'static,
Expand description
an event builder