pub struct InMemoryTwoPhaseJournal { /* private fields */ }Expand description
In-memory 2PC journal (tests and single-process coordinators).
Implementations§
Source§impl InMemoryTwoPhaseJournal
impl InMemoryTwoPhaseJournal
Sourcepub fn records(&self) -> Vec<TwoPhaseJournalRecord>
pub fn records(&self) -> Vec<TwoPhaseJournalRecord>
Trait Implementations§
Source§impl Debug for InMemoryTwoPhaseJournal
impl Debug for InMemoryTwoPhaseJournal
Source§impl Default for InMemoryTwoPhaseJournal
impl Default for InMemoryTwoPhaseJournal
Source§fn default() -> InMemoryTwoPhaseJournal
fn default() -> InMemoryTwoPhaseJournal
Returns the “default value” for a type. Read more
Source§impl TwoPhaseJournal for InMemoryTwoPhaseJournal
impl TwoPhaseJournal for InMemoryTwoPhaseJournal
Source§fn on_prepared<'a>(
&'a self,
tx_id: &'a [u8],
step: usize,
_total: usize,
) -> Pin<Box<dyn Future<Output = Result<(), TwoPhaseJournalError>> + Send + 'a>>
fn on_prepared<'a>( &'a self, tx_id: &'a [u8], step: usize, _total: usize, ) -> Pin<Box<dyn Future<Output = Result<(), TwoPhaseJournalError>> + Send + 'a>>
Persist progress after a successful prepare step.
Source§fn on_committed<'a>(
&'a self,
tx_id: &'a [u8],
step: usize,
_total: usize,
) -> Pin<Box<dyn Future<Output = Result<(), TwoPhaseJournalError>> + Send + 'a>>
fn on_committed<'a>( &'a self, tx_id: &'a [u8], step: usize, _total: usize, ) -> Pin<Box<dyn Future<Output = Result<(), TwoPhaseJournalError>> + Send + 'a>>
Persist progress after a successful commit step.
Auto Trait Implementations§
impl !Freeze for InMemoryTwoPhaseJournal
impl RefUnwindSafe for InMemoryTwoPhaseJournal
impl Send for InMemoryTwoPhaseJournal
impl Sync for InMemoryTwoPhaseJournal
impl Unpin for InMemoryTwoPhaseJournal
impl UnsafeUnpin for InMemoryTwoPhaseJournal
impl UnwindSafe for InMemoryTwoPhaseJournal
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