pub struct ResumeTwoPhaseOpts<'a> {
pub journal: Option<&'a dyn TwoPhaseJournal>,
pub probe: bool,
pub on_event: Option<&'a (dyn Fn(TwoPhaseEvent) + Send + Sync)>,
}Expand description
Hooks for resume_cross_shard_2pc.
Fields§
§journal: Option<&'a dyn TwoPhaseJournal>Journal that records prepared/committed prefixes.
probe: boolWhen true, try commit_keyed before prepare_keyed for unknown steps.
on_event: Option<&'a (dyn Fn(TwoPhaseEvent) + Send + Sync)>Metrics / logging callback.
Trait Implementations§
Source§impl<'a> Clone for ResumeTwoPhaseOpts<'a>
impl<'a> Clone for ResumeTwoPhaseOpts<'a>
Source§fn clone(&self) -> ResumeTwoPhaseOpts<'a>
fn clone(&self) -> ResumeTwoPhaseOpts<'a>
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<'a> Copy for ResumeTwoPhaseOpts<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResumeTwoPhaseOpts<'a>
impl<'a> !UnwindSafe for ResumeTwoPhaseOpts<'a>
impl<'a> Freeze for ResumeTwoPhaseOpts<'a>
impl<'a> Send for ResumeTwoPhaseOpts<'a>
impl<'a> Sync for ResumeTwoPhaseOpts<'a>
impl<'a> Unpin for ResumeTwoPhaseOpts<'a>
impl<'a> UnsafeUnpin for ResumeTwoPhaseOpts<'a>
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