pub trait FlowStoreServiceBase {
// Required methods
fn new<'async_trait>(
redis_client_arc: FlowStore,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: 'async_trait;
fn insert_flow<'life0, 'async_trait>(
&'life0 mut self,
flow: Flow,
) -> Pin<Box<dyn Future<Output = Result<i64, FlowStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn insert_flows<'life0, 'async_trait>(
&'life0 mut self,
flows: Flows,
) -> Pin<Box<dyn Future<Output = Result<i64, FlowStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_flow<'life0, 'async_trait>(
&'life0 mut self,
flow_id: i64,
) -> Pin<Box<dyn Future<Output = Result<i64, RedisError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_flows<'life0, 'async_trait>(
&'life0 mut self,
flow_ids: Vec<i64>,
) -> Pin<Box<dyn Future<Output = Result<i64, RedisError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_all_flow_ids<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, RedisError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_flows<'life0, 'async_trait>(
&'life0 mut self,
pattern: String,
) -> Pin<Box<dyn Future<Output = Result<Flows, FlowStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Trait representing a service for managing flows in a Redis.
Required Methods§
fn new<'async_trait>(
redis_client_arc: FlowStore,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: 'async_trait,
fn insert_flow<'life0, 'async_trait>(
&'life0 mut self,
flow: Flow,
) -> Pin<Box<dyn Future<Output = Result<i64, FlowStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_flows<'life0, 'async_trait>(
&'life0 mut self,
flows: Flows,
) -> Pin<Box<dyn Future<Output = Result<i64, FlowStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_flow<'life0, 'async_trait>(
&'life0 mut self,
flow_id: i64,
) -> Pin<Box<dyn Future<Output = Result<i64, RedisError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_flows<'life0, 'async_trait>(
&'life0 mut self,
flow_ids: Vec<i64>,
) -> Pin<Box<dyn Future<Output = Result<i64, RedisError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_flow_ids<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, RedisError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_flows<'life0, 'async_trait>(
&'life0 mut self,
pattern: String,
) -> Pin<Box<dyn Future<Output = Result<Flows, FlowStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl FlowStoreServiceBase for FlowStoreService
Implementation of a service for managing flows in a Redis.