Trait Guard
Source pub trait Guard<T>: Send + Sync {
type D: for<'a> DerefLt<'a, T>;
// Required methods
fn store<'life0, 'async_trait>(
&'life0 mut self,
data: T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load<'s, 'async_trait>(
&'s self,
) -> Pin<Box<dyn Future<Output = Result<<Self::D as DerefLt<'s, T>>::Deref>> + Send + 'async_trait>>
where Self: 'async_trait,
's: 'async_trait;
fn clear<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}