pub struct EventLogStore<S: FlowState> {
pub delegate: InMemoryFlowStore<S>,
/* private fields */
}Expand description
Event log store decorator — append-only transition log with replay.
Fields§
§delegate: InMemoryFlowStore<S>Implementations§
Source§impl<S: FlowState> EventLogStore<S>
impl<S: FlowState> EventLogStore<S>
pub fn new(delegate: InMemoryFlowStore<S>) -> Self
pub fn create(&mut self, flow: FlowInstance<S>)
pub fn get(&self, flow_id: &str) -> Option<&FlowInstance<S>>
pub fn get_mut(&mut self, flow_id: &str) -> Option<&mut FlowInstance<S>>
pub fn record_transition( &mut self, flow_id: &str, from: &str, to: &str, trigger: &str, snapshot: &str, )
pub fn append_compensation( &mut self, flow_id: &str, trigger: &str, metadata: &str, )
pub fn events(&self) -> &[VersionedTransitionEvent]
pub fn events_for_flow(&self, flow_id: &str) -> Vec<&VersionedTransitionEvent>
pub fn transition_log(&self) -> &[TransitionRecord]
pub fn clear(&mut self)
Auto Trait Implementations§
impl<S> Freeze for EventLogStore<S>
impl<S> !RefUnwindSafe for EventLogStore<S>
impl<S> Send for EventLogStore<S>
impl<S> !Sync for EventLogStore<S>
impl<S> Unpin for EventLogStore<S>where
S: Unpin,
impl<S> UnsafeUnpin for EventLogStore<S>
impl<S> !UnwindSafe for EventLogStore<S>
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