pub struct LocalTransport { /* private fields */ }Expand description
Single-machine in-process transport. All num_ranks
“ranks” share one SymmetricHeap instance, so put / get
are just locks + memcpy. Useful for unit tests and for
algorithm-correctness checking of collective ops without a
real cluster.
Implementations§
Source§impl LocalTransport
impl LocalTransport
Trait Implementations§
Source§impl Clone for LocalTransport
impl Clone for LocalTransport
Source§fn clone(&self) -> LocalTransport
fn clone(&self) -> LocalTransport
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 moreSource§impl Debug for LocalTransport
impl Debug for LocalTransport
Source§impl SymmetricTransport for LocalTransport
impl SymmetricTransport for LocalTransport
Source§fn put(&self, buf: SymmetricBuffer, src: &[u8]) -> Result<(), CollectiveError>
fn put(&self, buf: SymmetricBuffer, src: &[u8]) -> Result<(), CollectiveError>
Write
src into buf. Errors on length mismatch.Source§fn get(
&self,
buf: SymmetricBuffer,
dst: &mut [u8],
) -> Result<(), CollectiveError>
fn get( &self, buf: SymmetricBuffer, dst: &mut [u8], ) -> Result<(), CollectiveError>
Read from
buf into dst. Errors on length mismatch.Auto Trait Implementations§
impl Freeze for LocalTransport
impl RefUnwindSafe for LocalTransport
impl Send for LocalTransport
impl Sync for LocalTransport
impl Unpin for LocalTransport
impl UnsafeUnpin for LocalTransport
impl UnwindSafe for LocalTransport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more