Start working on tree layouting
This commit is contained in:
parent
6fdce9db1e
commit
021d5a8943
4 changed files with 159 additions and 49 deletions
|
|
@ -85,5 +85,9 @@ impl<M: Msg> Tree<M> {
|
|||
#[async_trait]
|
||||
pub trait MsgStore<M: Msg> {
|
||||
async fn path(&self, room: &str, id: &M::Id) -> Path<M::Id>;
|
||||
async fn thread(&self, room: &str, root: &M::Id) -> Tree<M>;
|
||||
async fn tree(&self, room: &str, root: &M::Id) -> Tree<M>;
|
||||
async fn prev_tree(&self, room: &str, tree: &M::Id) -> Option<M::Id>;
|
||||
async fn next_tree(&self, room: &str, tree: &M::Id) -> Option<M::Id>;
|
||||
async fn first_tree(&self, room: &str) -> Option<M::Id>;
|
||||
async fn last_tree(&self, room: &str) -> Option<M::Id>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue