pub struct RunTwoPhaseOpts<'a> {
pub journal: Option<&'a dyn TwoPhaseJournal>,
pub on_event: Option<&'a (dyn Fn(TwoPhaseEvent) + Send + Sync)>,
}Expand description
Hooks for propose_cross_shard_2pc.
Fields§
§journal: Option<&'a dyn TwoPhaseJournal>Optional client-side journal for resume after coordinator restart.
on_event: Option<&'a (dyn Fn(TwoPhaseEvent) + Send + Sync)>Metrics / logging callback.
Trait Implementations§
Source§impl<'a> Clone for RunTwoPhaseOpts<'a>
impl<'a> Clone for RunTwoPhaseOpts<'a>
Source§fn clone(&self) -> RunTwoPhaseOpts<'a>
fn clone(&self) -> RunTwoPhaseOpts<'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 RunTwoPhaseOpts<'a>
Source§impl<'a> Default for RunTwoPhaseOpts<'a>
impl<'a> Default for RunTwoPhaseOpts<'a>
Source§fn default() -> RunTwoPhaseOpts<'a>
fn default() -> RunTwoPhaseOpts<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RunTwoPhaseOpts<'a>
impl<'a> !UnwindSafe for RunTwoPhaseOpts<'a>
impl<'a> Freeze for RunTwoPhaseOpts<'a>
impl<'a> Send for RunTwoPhaseOpts<'a>
impl<'a> Sync for RunTwoPhaseOpts<'a>
impl<'a> Unpin for RunTwoPhaseOpts<'a>
impl<'a> UnsafeUnpin for RunTwoPhaseOpts<'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