pub trait Task<'a>: Serialize + Deserialize<'a> {
type SharedState: SharedState<'a>;
// Required methods
fn get_desctiption(&self) -> &str;
fn next_repetition(&self, _retrievability_goal: f64) -> SystemTime;
fn complete(
self,
shared_state: &mut Self::SharedState,
interaction: &mut impl UserInteraction,
) -> (Self, Feedback);
}
Required Associated Types§
Required Methods§
fn get_desctiption(&self) -> &str
fn next_repetition(&self, _retrievability_goal: f64) -> SystemTime
fn complete( self, shared_state: &mut Self::SharedState, interaction: &mut impl UserInteraction, ) -> (Self, Feedback)
Object Safety§
This trait is not object safe.