pub struct InMemoryFamilyStore { /* private fields */ }Trait Implementations§
Source§impl Clone for InMemoryFamilyStore
impl Clone for InMemoryFamilyStore
Source§impl Default for InMemoryFamilyStore
impl Default for InMemoryFamilyStore
Source§impl FamilyStore for InMemoryFamilyStore
impl FamilyStore for InMemoryFamilyStore
fn create_family<'life0, 'async_trait>(
&'life0 self,
family: Family,
owner: FamilyMember,
) -> Pin<Box<dyn Future<Output = Result<(), FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_families<'life0, 'async_trait>(
&'life0 self,
user_id: UserId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Family>, FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_family<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
) -> Pin<Box<dyn Future<Output = Result<Option<Family>, FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rename_family<'life0, 'life1, 'async_trait>(
&'life0 self,
family_id: FamilyId,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Family, FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_family<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
) -> Pin<Box<dyn Future<Output = Result<(), FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_members<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
) -> Pin<Box<dyn Future<Output = Result<Vec<FamilyMember>, FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_member<'life0, 'async_trait>(
&'life0 self,
member: FamilyMember,
) -> Pin<Box<dyn Future<Output = Result<(), FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_member<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
user_id: UserId,
) -> Pin<Box<dyn Future<Output = Result<(), FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn leave_family<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
user_id: UserId,
) -> Pin<Box<dyn Future<Output = Result<(), FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn change_member_role<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
user_id: UserId,
role: FamilyRole,
) -> Pin<Box<dyn Future<Output = Result<FamilyMember, FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn change_member_relationship<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
user_id: UserId,
relationship: FamilyRelationship,
) -> Pin<Box<dyn Future<Output = Result<FamilyMember, FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn transfer_ownership<'life0, 'async_trait>(
&'life0 self,
family_id: FamilyId,
current_owner: UserId,
new_owner: UserId,
) -> Pin<Box<dyn Future<Output = Result<(), FamilyStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryFamilyStore
impl !UnwindSafe for InMemoryFamilyStore
impl Freeze for InMemoryFamilyStore
impl Send for InMemoryFamilyStore
impl Sync for InMemoryFamilyStore
impl Unpin for InMemoryFamilyStore
impl UnsafeUnpin for InMemoryFamilyStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more