sos_database::storage

Trait StorageEventLogs

Source
pub trait StorageEventLogs {
    // Required methods
    fn identity_log<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<FolderEventLog>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn account_log<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<AccountEventLog>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn device_log<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<DeviceEventLog>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn folder_details<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<IndexSet<Summary>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn folder_log<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 VaultId,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<FolderEventLog>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

References to the storage event logs.

Required Methods§

Source

fn identity_log<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<FolderEventLog>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clone of the identity log.

Source

fn account_log<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<AccountEventLog>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clone of the account log.

Source

fn device_log<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<DeviceEventLog>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clone of the device log.

Source

fn folder_details<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<IndexSet<Summary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Folders managed by this storage.

Built from the in-memory list of folders.

Source

fn folder_log<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 VaultId, ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<FolderEventLog>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Folder event log.

Implementors§