pub trait LockProvider: Send + Sync {
// Required methods
fn get_state<'life0, 'life1, 'async_trait>(
&'life0 self,
lock_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn lock<'life0, 'life1, 'async_trait>(
&'life0 self,
lock_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn unlock<'life0, 'life1, 'async_trait>(
&'life0 self,
lock_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_activity<'life0, 'life1, 'async_trait>(
&'life0 self,
lock_id: &'life1 str,
limit: u32,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Lock provider trait