pub enum WriterTaskRequestState {
NotStarted,
TransactionRolledBack,
SideEffectsUnknown,
}Expand description
What is known about one request when its single-writer execution seam terminates or is retired.
The state is deliberately about the request, not about why the task stopped. Callers need this distinction to decide whether a write is known not to have started, known to have had its SQLite transaction rolled back, or may already have produced side effects.
Variants§
NotStarted
The request’s operation closure was never invoked.
TransactionRolledBack
The request panicked inside BEGIN IMMEDIATE, and that transaction was
successfully rolled back on the connection that owned it.
SideEffectsUnknown
The request was accepted, but its exact outcome cannot be established; it may already have produced side effects and must not be blindly retried.
Trait Implementations§
Source§impl Clone for WriterTaskRequestState
impl Clone for WriterTaskRequestState
Source§fn clone(&self) -> WriterTaskRequestState
fn clone(&self) -> WriterTaskRequestState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WriterTaskRequestState
Source§impl Debug for WriterTaskRequestState
impl Debug for WriterTaskRequestState
Source§impl Display for WriterTaskRequestState
impl Display for WriterTaskRequestState
impl Eq for WriterTaskRequestState
Source§impl PartialEq for WriterTaskRequestState
impl PartialEq for WriterTaskRequestState
impl StructuralPartialEq for WriterTaskRequestState
Auto Trait Implementations§
impl Freeze for WriterTaskRequestState
impl RefUnwindSafe for WriterTaskRequestState
impl Send for WriterTaskRequestState
impl Sync for WriterTaskRequestState
impl Unpin for WriterTaskRequestState
impl UnsafeUnpin for WriterTaskRequestState
impl UnwindSafe for WriterTaskRequestState
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