pub struct LosslessEventDelivery { /* private fields */ }Expand description
One lossless event held durably until its single consumer acknowledges it.
Implementations§
Source§impl LosslessEventDelivery
impl LosslessEventDelivery
Sourcepub const fn delivery_id(&self) -> Option<u64>
pub const fn delivery_id(&self) -> Option<u64>
Returns the store-local durable delivery ID when the backend supports it.
Sourcepub const fn event(&self) -> &ClientEvent
pub const fn event(&self) -> &ClientEvent
Returns the committed client event.
Sourcepub async fn ack(&self) -> BackendResult<()>
pub async fn ack(&self) -> BackendResult<()>
Acknowledges the event after consumer-side handling is durably committed.
Trait Implementations§
Source§impl Debug for LosslessEventDelivery
impl Debug for LosslessEventDelivery
Source§impl Drop for LosslessEventDelivery
impl Drop for LosslessEventDelivery
Auto Trait Implementations§
impl !Freeze for LosslessEventDelivery
impl !RefUnwindSafe for LosslessEventDelivery
impl !UnwindSafe for LosslessEventDelivery
impl Send for LosslessEventDelivery
impl Sync for LosslessEventDelivery
impl Unpin for LosslessEventDelivery
impl UnsafeUnpin for LosslessEventDelivery
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