Trait ssr_core::task::Task

source ·
pub trait Task<'a>: Serialize + Deserialize<'a> {
    // Required methods
    fn get_desctiption(&self) -> &str;
    fn until_next_repetition(&self) -> Duration;
    fn complete(
        self,
        interaction: impl UserInteraction,
    ) -> (Self, Feedback<impl IntoIterator<Item = String>>);
}

Required Methods§

source

fn get_desctiption(&self) -> &str

source

fn until_next_repetition(&self) -> Duration

source

fn complete( self, interaction: impl UserInteraction, ) -> (Self, Feedback<impl IntoIterator<Item = String>>)

Object Safety§

This trait is not object safe.

Implementors§