pub struct TwoPcCoordinator { /* private fields */ }Implementations§
Source§impl TwoPcCoordinator
impl TwoPcCoordinator
pub fn new(participant_ids: &[&str]) -> Self
pub fn prepare(&self, participant_id: &str) -> Result<(), String>
pub fn all_prepared(&self) -> bool
pub fn commit(&self) -> Result<(), String>
pub fn abort(&self)
pub fn global_state(&self) -> TwoPcState
pub fn participant_count(&self) -> usize
Auto Trait Implementations§
impl !Freeze for TwoPcCoordinator
impl RefUnwindSafe for TwoPcCoordinator
impl Send for TwoPcCoordinator
impl Sync for TwoPcCoordinator
impl Unpin for TwoPcCoordinator
impl UnsafeUnpin for TwoPcCoordinator
impl UnwindSafe for TwoPcCoordinator
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