pub struct MemoryRepository { /* private fields */ }Expand description
Memory Repository
In-memory storage for process instances.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryRepository
impl Clone for MemoryRepository
Source§fn clone(&self) -> MemoryRepository
fn clone(&self) -> MemoryRepository
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryRepository
impl Debug for MemoryRepository
Source§impl Default for MemoryRepository
impl Default for MemoryRepository
Source§impl Repository for MemoryRepository
impl Repository for MemoryRepository
Source§fn save<'life0, 'async_trait>(
&'life0 self,
instance: Arc<ProcessInstance>,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
instance: Arc<ProcessInstance>,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a process instance
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
instance_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<ProcessInstance>>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
instance_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<ProcessInstance>>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a process instance by ID
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
instance_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
instance_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a process instance
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryRepository
impl !UnwindSafe for MemoryRepository
impl Freeze for MemoryRepository
impl Send for MemoryRepository
impl Sync for MemoryRepository
impl Unpin for MemoryRepository
impl UnsafeUnpin for MemoryRepository
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