Skip to main content

apply

Function apply 

Source
pub fn apply(state: &mut MissionState, event: &Event) -> Result<()>
Expand description

Apply one event on top of an existing state. event.seq must be exactly state.last_seq + 1 (fold passes contiguous events; anything else is a caller bug or log corruption).