Skip to main content

event_version

Function event_version 

Source
pub fn event_version(e: &Event) -> u64
Expand description

Extract the version field from any Event variant. When a new variant is added that carries a version, add it here too — the exhaustive match catches future-variant compile errors.