make save_user_settings async

This commit is contained in:
jake 2020-10-03 17:23:39 -06:00
parent d8c6dd817e
commit 89f3091099

View File

@ -2,6 +2,7 @@ use crate::entity::account::*;
use crate::entity::character::*;
use crate::entity::item::*;
// TODO: all these Options should be Results
#[async_trait::async_trait]
pub trait EntityGateway: Send + Sync + Clone {
async fn create_user(&mut self, _user: NewUserAccountEntity) -> Option<UserAccountEntity> {
@ -28,7 +29,7 @@ pub trait EntityGateway: Send + Sync + Clone {
unimplemented!();
}
fn save_user_settings(&mut self, _settings: &UserSettingsEntity) {
async fn save_user_settings(&mut self, _settings: &UserSettingsEntity) {
unimplemented!();
}
@ -36,6 +37,7 @@ pub trait EntityGateway: Send + Sync + Clone {
unimplemented!();
}
// TODO: just make this a vec sorted by slot order?
async fn get_characters_by_user(&self, _user: &UserAccountEntity) -> [Option<CharacterEntity>; 4] {
unimplemented!();
}