pub struct StorageSink {
pub store: Store,
/* private fields */
}Expand description
EventSink that persists each event into the SQLite store as execution + execution_step rows. Designed for fan-out via MultiSink alongside the Tauri-emitting sink.
Fields§
§store: StoreImplementations§
Source§impl StorageSink
impl StorageSink
pub fn new(store: Store) -> Self
Sourcepub fn with_flow_name(store: Store, flow_name: String) -> Self
pub fn with_flow_name(store: Store, flow_name: String) -> Self
Like StorageSink::new, but tags every persisted execution with the
flow’s display name so list views (history, per-template last-run) can
show which flow ran.
Sourcepub fn with_flow_name_and_trigger(
store: Store,
flow_name: String,
trigger: String,
) -> Self
pub fn with_flow_name_and_trigger( store: Store, flow_name: String, trigger: String, ) -> Self
Like StorageSink::with_flow_name, but also records how the run was
triggered (manual / scheduled).
Trait Implementations§
Source§impl EventSink for StorageSink
impl EventSink for StorageSink
fn emit(&self, event: ExecutionEvent)
Auto Trait Implementations§
impl !Freeze for StorageSink
impl !RefUnwindSafe for StorageSink
impl Send for StorageSink
impl Sync for StorageSink
impl Unpin for StorageSink
impl UnsafeUnpin for StorageSink
impl !UnwindSafe for StorageSink
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