Skip to main content

StatefulHandler

Trait StatefulHandler 

Source
pub trait StatefulHandler {
    // Required method
    fn update_state(&mut self, state: PipelineState);
}
Expand description

Trait for handlers that maintain internal state.

This trait allows the event loop to update the handler’s internal state after each event is processed.

Required Methods§

Source

fn update_state(&mut self, state: PipelineState)

Update the handler’s internal state.

Implementors§