pub struct FlowStoreService { /* private fields */ }
Expand description
Struct representing a service for managing flows in a Redis.
Trait Implementations§
Source§impl Clone for FlowStoreService
impl Clone for FlowStoreService
Source§fn clone(&self) -> FlowStoreService
fn clone(&self) -> FlowStoreService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl FlowStoreServiceBase for FlowStoreService
Implementation of a service for managing flows in a Redis.
impl FlowStoreServiceBase for FlowStoreService
Implementation of a service for managing flows in a Redis.
Source§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_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,
Insert a list of flows into Redis
Source§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 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,
Insert a flows into Redis
Source§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_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,
Deletes a flow
Source§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 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,
Deletes a list of flows
Source§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 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,
Queries for all ids in the redis
Returns Result<Vec<i64>, RedisError>
: Result of the flow ids currently in Redis
fn new<'async_trait>( redis_client_arc: FlowStore, ) -> Pin<Box<dyn Future<Output = FlowStoreService> + Send + '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,
Auto Trait Implementations§
impl Freeze for FlowStoreService
impl !RefUnwindSafe for FlowStoreService
impl Send for FlowStoreService
impl Sync for FlowStoreService
impl Unpin for FlowStoreService
impl !UnwindSafe for FlowStoreService
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request