pub fn detect_priority<M: Message>(event: &Event<M>) -> Priority
Detect the priority of an event without unsafe operations