pub enum AuditBatchStage {
Done(ConfirmedAuditNotificationOutcome, bool),
Staged(StagedAuditBatch),
Busy(SaveWait),
}Expand description
What staging an Audit notification batch gave the caller.
Variants§
Done(ConfirmedAuditNotificationOutcome, bool)
No staged commit was needed: the batch’s outcome, and whether its retained records changed. A duplicate confirmed batch, an unconfirmed one that changed nothing, and any batch to a sink that stores at once end here.
Staged(StagedAuditBatch)
The commit is queued. Await StagedAuditBatch::saved without the
database guard, then pass the batch to
AuditLogNotificationSink::finish_notification_batch.
Busy(SaveWait)
Another staged commit holds the log. Await the wait, then stage the batch again.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditBatchStage
impl RefUnwindSafe for AuditBatchStage
impl Send for AuditBatchStage
impl Sync for AuditBatchStage
impl Unpin for AuditBatchStage
impl UnsafeUnpin for AuditBatchStage
impl UnwindSafe for AuditBatchStage
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