Skip to main content

Storage

Trait Storage 

Source
pub trait Storage: Send + Sync {
    // Required methods
    fn load_board<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 BoardId,
    ) -> Pin<Box<dyn Future<Output = Result<Board, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn save_board<'life0, 'life1, 'async_trait>(
        &'life0 self,
        board: &'life1 Board,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_board<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 BoardId,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_boards<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<BoardId>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn load_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        board_id: &'life1 BoardId,
        task_id: &'life2 TaskId,
    ) -> Pin<Box<dyn Future<Output = Result<Task, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn save_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        board_id: &'life1 BoardId,
        task: &'life2 Task,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        board_id: &'life1 BoardId,
        task_id: &'life2 TaskId,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 self,
        board_id: &'life1 BoardId,
        query: Query,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_changeset<'life0, 'life1, 'async_trait>(
        &'life0 self,
        board_id: &'life1 BoardId,
        since: Version,
    ) -> Pin<Box<dyn Future<Output = Result<Changeset, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn apply_changeset<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        board_id: &'life1 BoardId,
        changeset: &'life2 Changeset,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided methods
    fn search<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SearchResult>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn search_in_board<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        board_id: &'life1 BoardId,
        query: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SearchResult>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

Source

fn load_board<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 BoardId, ) -> Pin<Box<dyn Future<Output = Result<Board, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn save_board<'life0, 'life1, 'async_trait>( &'life0 self, board: &'life1 Board, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_board<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 BoardId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list_boards<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<BoardId>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn load_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, board_id: &'life1 BoardId, task_id: &'life2 TaskId, ) -> Pin<Box<dyn Future<Output = Result<Task, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn save_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, board_id: &'life1 BoardId, task: &'life2 Task, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, board_id: &'life1 BoardId, task_id: &'life2 TaskId, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn query<'life0, 'life1, 'async_trait>( &'life0 self, board_id: &'life1 BoardId, query: Query, ) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_changeset<'life0, 'life1, 'async_trait>( &'life0 self, board_id: &'life1 BoardId, since: Version, ) -> Pin<Box<dyn Future<Output = Result<Changeset, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn apply_changeset<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, board_id: &'life1 BoardId, changeset: &'life2 Changeset, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Source

fn search<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<SearchResult>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn search_in_board<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, board_id: &'life1 BoardId, query: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<SearchResult>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§