pub struct AsyncMemoryStorage { /* private fields */ }Expand description
Async memory storage implementation.
Implementations§
Trait Implementations§
Source§impl AsyncStorage for AsyncMemoryStorage
impl AsyncStorage for AsyncMemoryStorage
Source§fn store_role<'life0, 'async_trait>(
&'life0 mut self,
role: Role,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_role<'life0, 'async_trait>(
&'life0 mut self,
role: Role,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store a role asynchronously.
Source§fn get_role<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Role>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_role<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Role>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a role by name asynchronously.
Source§fn role_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn role_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a role exists asynchronously.
Source§fn delete_role<'life0, 'life1, 'async_trait>(
&'life0 mut self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_role<'life0, 'life1, 'async_trait>(
&'life0 mut self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a role asynchronously.
Source§impl Debug for AsyncMemoryStorage
impl Debug for AsyncMemoryStorage
Source§impl Default for AsyncMemoryStorage
impl Default for AsyncMemoryStorage
Source§fn default() -> AsyncMemoryStorage
fn default() -> AsyncMemoryStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AsyncMemoryStorage
impl !RefUnwindSafe for AsyncMemoryStorage
impl Send for AsyncMemoryStorage
impl Sync for AsyncMemoryStorage
impl Unpin for AsyncMemoryStorage
impl !UnwindSafe for AsyncMemoryStorage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more