pub struct MockCommState {
pub rank_buffers: HashMap<usize, Vec<u8>>,
pub world_size: usize,
/* private fields */
}Expand description
Shared state for simulating multi-rank communication in a single process.
Each “rank” has its own buffer space, and operations coordinate through this shared state.
Fields§
§rank_buffers: HashMap<usize, Vec<u8>>Per-rank buffers for simulating communication
world_size: usizeWorld size for this communication group
Implementations§
Trait Implementations§
Source§impl Debug for MockCommState
impl Debug for MockCommState
Source§impl Default for MockCommState
impl Default for MockCommState
Source§fn default() -> MockCommState
fn default() -> MockCommState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MockCommState
impl RefUnwindSafe for MockCommState
impl Send for MockCommState
impl Sync for MockCommState
impl Unpin for MockCommState
impl UnsafeUnpin for MockCommState
impl UnwindSafe for MockCommState
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