pub enum PreparedBarrier {
Centralized(PreparedLinearBarrier),
BinaryTree(PreparedBinaryTreeBarrier),
Dissemination(PreparedDisseminationBarrier),
}Expand description
A barrier that has been allocated but not yet linked to remote peers.
Call link_remote with the remote memory region handles
after the endpoint exchange to produce a Barrier.
Variants§
Centralized(PreparedLinearBarrier)
Leader-based barrier. See BarrierAlgorithm::Centralized.
BinaryTree(PreparedBinaryTreeBarrier)
Binary-tree barrier. See BarrierAlgorithm::BinaryTree.
Dissemination(PreparedDisseminationBarrier)
Dissemination barrier. See BarrierAlgorithm::Dissemination.
Implementations§
Source§impl PreparedBarrier
impl PreparedBarrier
Sourcepub fn remote_mr(&self) -> PeerRemoteMemoryRegion
pub fn remote_mr(&self) -> PeerRemoteMemoryRegion
Returns this node’s barrier memory region handle for exchange with peers.
Sourcepub fn link_remote(self, remote_mrs: Box<[PeerRemoteMemoryRegion]>) -> Barrier
pub fn link_remote(self, remote_mrs: Box<[PeerRemoteMemoryRegion]>) -> Barrier
Links remote peer memory regions and returns a ready-to-use Barrier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreparedBarrier
impl RefUnwindSafe for PreparedBarrier
impl Send for PreparedBarrier
impl Sync for PreparedBarrier
impl Unpin for PreparedBarrier
impl UnsafeUnpin for PreparedBarrier
impl UnwindSafe for PreparedBarrier
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