pub enum CommitMode {
Sync,
Async,
}Expand description
Sync flushes data-store side-effects before commit returns.
Async durably persists the transitions then applies the data-store side-effects on a background-friendly path (already-applied side-effects are the common case for in-process inner stores).
The Rust port runs both modes synchronously on the calling thread for predictability; the distinction is preserved for parity with C# and for future expansion.
Variants§
Trait Implementations§
Source§impl Clone for CommitMode
impl Clone for CommitMode
Source§fn clone(&self) -> CommitMode
fn clone(&self) -> CommitMode
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 moreSource§impl Debug for CommitMode
impl Debug for CommitMode
Source§impl Default for CommitMode
impl Default for CommitMode
Source§fn default() -> CommitMode
fn default() -> CommitMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for CommitMode
impl PartialEq for CommitMode
Source§fn eq(&self, other: &CommitMode) -> bool
fn eq(&self, other: &CommitMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CommitMode
impl Eq for CommitMode
impl StructuralPartialEq for CommitMode
Auto Trait Implementations§
impl Freeze for CommitMode
impl RefUnwindSafe for CommitMode
impl Send for CommitMode
impl Sync for CommitMode
impl Unpin for CommitMode
impl UnsafeUnpin for CommitMode
impl UnwindSafe for CommitMode
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