Trait DeviceAuthKeyStore
Source pub trait DeviceAuthKeyStore: Send + Sync {
// Required methods
fn create_record<'life0, 'async_trait>(
&'life0 self,
record: DeviceAuthKeyRecord,
) -> Pin<Box<dyn Future<Output = Result<(), DeviceAuthKeyCallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_metadata<'life0, 'async_trait>(
&'life0 self,
metadata: DeviceAuthKeyMetadata,
) -> Pin<Box<dyn Future<Output = Result<(), DeviceAuthKeyCallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_metadata<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<DeviceAuthKeyMetadata>, DeviceAuthKeyCallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_record<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<DeviceAuthKeyRecord>, DeviceAuthKeyCallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_record_and_metadata<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), DeviceAuthKeyCallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}