pub fn emit(&self, payload: T) {
        for handler in &self.handlers {
            handler(&payload);
        }
    }
/// Fires the event, passing the `payload` as an argument of each event
/// handler.
Fires the event, passing the `payload` as an argument of each event
handler.
Fires the event passing the ` payload ` as an argument of each event handler .
pub fn emit(&self, payload: T) {
        for handler in &self.handlers {
            handler(&payload);
        }
    }
pub fn emit ( & self , payload : T ) { for handler in & self . handlers { handler ( & payload ) ; } }
Fires the event, passing the `payload` as an argument of each event
handler.
Fires the event passing the ` payload ` as an argument of each event handler .
&self
payload
T
&self
payload
T