Trait parallel_event_emitter::EventKey [] [src]

pub trait EventKey: Hash + PartialEq + Eq + Clone + Send + 'static { }

Types that can be used as event identifiers

Example using an enum:

#[derive(Debug, Hash, PartialEq, Eq, Clone)]
enum MyEvents {
    EventA,
    EventB,
}

Implementors