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;
}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,
Trait Implementations§
Source§impl<T> FfiConverterArc<T> for dyn DeviceAuthKeyStore
impl<T> FfiConverterArc<T> for dyn DeviceAuthKeyStore
Source§impl<T> LiftRef<T> for dyn DeviceAuthKeyStore
impl<T> LiftRef<T> for dyn DeviceAuthKeyStore
type LiftType = Arc<dyn DeviceAuthKeyStore>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".