Trait biodivine_sketchbook::app::state::SessionState

source ·
pub trait SessionState {
    // Required methods
    fn perform_event(
        &mut self,
        event: &Event,
        at_path: &[&str],
    ) -> Result<Consumed, DynError>;
    fn refresh(
        &self,
        full_path: &[String],
        at_path: &[&str],
    ) -> Result<Event, DynError>;
}

Required Methods§

source

fn perform_event( &mut self, event: &Event, at_path: &[&str], ) -> Result<Consumed, DynError>

Modify the session state using the provided event. The possible outcomes are described by Consumed.

source

fn refresh( &self, full_path: &[String], at_path: &[&str], ) -> Result<Event, DynError>

“Read” session state into an event without modifying it.

Implementors§