pub struct InMemoryStorage { /* private fields */ }Expand description
In-memory storage implementation
Implementations§
Trait Implementations§
Source§impl Default for InMemoryStorage
impl Default for InMemoryStorage
Source§impl RuleStorage for InMemoryStorage
impl RuleStorage for InMemoryStorage
Source§fn store_rule<'life0, 'async_trait>(
&'life0 mut self,
rule: Rule,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_rule<'life0, 'async_trait>(
&'life0 mut self,
rule: Rule,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store a rule
Source§fn get_rule<'life0, 'life1, 'async_trait>(
&'life0 self,
rule_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Rule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_rule<'life0, 'life1, 'async_trait>(
&'life0 self,
rule_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Rule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve a rule by ID
Source§fn get_all_rules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Rule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_rules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Rule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all rules
Auto Trait Implementations§
impl Freeze for InMemoryStorage
impl RefUnwindSafe for InMemoryStorage
impl Send for InMemoryStorage
impl Sync for InMemoryStorage
impl Unpin for InMemoryStorage
impl UnwindSafe for InMemoryStorage
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