pub struct DeliveryIndex { /* private fields */ }Implementations§
Source§impl DeliveryIndex
impl DeliveryIndex
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self, DeliveryError>
pub fn open(path: impl AsRef<Path>) -> Result<Self, DeliveryError>
Opens (creating if needed) the index at path, applying pending
schema migrations (shared with the event log — same database).
§Errors
Returns DeliveryError on any SQLite or migration failure.
Sourcepub fn decide(
&self,
request: &DeliveryRequest<'_>,
) -> Result<Delivery, DeliveryError>
pub fn decide( &self, request: &DeliveryRequest<'_>, ) -> Result<Delivery, DeliveryError>
Advances the scope’s emission counter and decides how to emit
slice_key, recording the delivery only for complete emissions.
§Errors
Returns DeliveryError::Storage on any SQLite failure.
Auto Trait Implementations§
impl !Freeze for DeliveryIndex
impl !RefUnwindSafe for DeliveryIndex
impl !Sync for DeliveryIndex
impl !UnwindSafe for DeliveryIndex
impl Send for DeliveryIndex
impl Unpin for DeliveryIndex
impl UnsafeUnpin for DeliveryIndex
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