pub struct SqliteSink { /* private fields */ }Expand description
Zero-config default sink. Always available, no setup required, so “storage on by default” is actually true out of the box.
Implementations§
Source§impl SqliteSink
impl SqliteSink
pub fn open(path: &str) -> Result<Self, SignalError>
Trait Implementations§
Source§impl SignalSink for SqliteSink
impl SignalSink for SqliteSink
Source§fn record(&self, signal: &Signal) -> Result<(), SignalError>
fn record(&self, signal: &Signal) -> Result<(), SignalError>
Stores a signal that is about to be delivered.
Source§fn complete(
&self,
signal: &Signal,
result: &DeliveryResult,
) -> Result<(), SignalError>
fn complete( &self, signal: &Signal, result: &DeliveryResult, ) -> Result<(), SignalError>
Stores the delivery outcome, including
result.deliveries. Must
also work when record failed or never ran for this signal, so
the outcome is never lost.Source§fn provider_outcome(
&self,
signal: &Signal,
outcome: &ProviderOutcome,
) -> Result<(), SignalError>
fn provider_outcome( &self, signal: &Signal, outcome: &ProviderOutcome, ) -> Result<(), SignalError>
Stores one provider’s outcome while delivery is still running:
pending before its first attempt, then delivered or failed.
A fan-out cut short by a timeout or an exit then still shows
which providers already have the signal. Sinks that only keep
the overall outcome can leave this as is.Auto Trait Implementations§
impl !Freeze for SqliteSink
impl RefUnwindSafe for SqliteSink
impl Send for SqliteSink
impl Sync for SqliteSink
impl Unpin for SqliteSink
impl UnsafeUnpin for SqliteSink
impl UnwindSafe for SqliteSink
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