pub struct Exchanger {}Expand description
TCP-based all-to-all data exchange between nodes in a network.
Used during setup to exchange RDMA endpoint information (e.g. QueuePairEndpoint)
between peers over TCP before RDMA channels are established.
Implementations§
Source§impl Exchanger
impl Exchanger
Sourcepub fn await_exchange_all<T: Serialize + DeserializeOwned + Clone>(
rank: usize,
network: &NetworkConfig,
data: &T,
config: &ExchangeConfig,
) -> Result<Vec<T>, ExchangeError>
pub fn await_exchange_all<T: Serialize + DeserializeOwned + Clone>( rank: usize, network: &NetworkConfig, data: &T, config: &ExchangeConfig, ) -> Result<Vec<T>, ExchangeError>
Exchanges data with all other nodes in the network, blocking until complete or timeout.
Returns a Vec<T> indexed by rank, where the entry at this node’s rank is a clone
of the local data and all other entries come from the corresponding remote nodes.
Auto Trait Implementations§
impl Freeze for Exchanger
impl RefUnwindSafe for Exchanger
impl Send for Exchanger
impl Sync for Exchanger
impl Unpin for Exchanger
impl UnsafeUnpin for Exchanger
impl UnwindSafe for Exchanger
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