feat: Basic HTTP listener
This commit is contained in:
parent
c77223048c
commit
452da73413
7 changed files with 350 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ impl<D: DatabaseInterface> DatabaseInterface for Database<D> {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait DatabaseInterface {
|
||||
pub trait DatabaseInterface: Clone + Send + Sync + 'static {
|
||||
async fn get_user(&self, user: &UserRef) -> Result<Option<User>, BoxedError>;
|
||||
async fn create_user(
|
||||
&mut self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue