Trait ssr_core::task::level::TaskLevel

source ·
pub trait TaskLevel<'a>:
    Default
    + Serialize
    + Deserialize<'a> {
    type Context;
    type SharedState: Default + Serialize + Deserialize<'a>;

    // Required methods
    fn update(
        &mut self,
        shared_state: &mut Self::SharedState,
        context: Self::Context,
    );
    fn next_repetition(&self, _retrievability_goal: f64) -> SystemTime;
}

Required Associated Types§

Required Methods§

source

fn update( &mut self, shared_state: &mut Self::SharedState, context: Self::Context, )

source

fn next_repetition(&self, _retrievability_goal: f64) -> SystemTime

Object Safety§

This trait is not object safe.

Implementors§