pub struct CommunicationPeerCounts { /* private fields */ }Expand description
Exact rank-local send and receive element counts for a variable exchange.
Counts are ordered by opaque communication-group membership. Zero is a valid count for an idle peer; the peer cardinality itself must be positive.
Implementations§
Source§impl CommunicationPeerCounts
impl CommunicationPeerCounts
Sourcepub fn new(
send: Vec<usize>,
receive: Vec<usize>,
group_size: usize,
) -> Result<Self, CommunicationManifestError>
pub fn new( send: Vec<usize>, receive: Vec<usize>, group_size: usize, ) -> Result<Self, CommunicationManifestError>
Validates one send and receive count for every ordered group member.
Sourcepub fn receive(&self) -> &[usize]
pub fn receive(&self) -> &[usize]
Elements expected from each peer in ordered membership order.
Sourcepub fn group_size(&self) -> usize
pub fn group_size(&self) -> usize
Ordered communication-group cardinality.
Trait Implementations§
Source§impl Clone for CommunicationPeerCounts
impl Clone for CommunicationPeerCounts
Source§fn clone(&self) -> CommunicationPeerCounts
fn clone(&self) -> CommunicationPeerCounts
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 CommunicationPeerCounts
impl Debug for CommunicationPeerCounts
Source§impl<'de> Deserialize<'de> for CommunicationPeerCounts
impl<'de> Deserialize<'de> for CommunicationPeerCounts
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommunicationPeerCounts
Source§impl PartialEq for CommunicationPeerCounts
impl PartialEq for CommunicationPeerCounts
Source§impl Serialize for CommunicationPeerCounts
impl Serialize for CommunicationPeerCounts
impl StructuralPartialEq for CommunicationPeerCounts
Auto Trait Implementations§
impl Freeze for CommunicationPeerCounts
impl RefUnwindSafe for CommunicationPeerCounts
impl Send for CommunicationPeerCounts
impl Sync for CommunicationPeerCounts
impl Unpin for CommunicationPeerCounts
impl UnsafeUnpin for CommunicationPeerCounts
impl UnwindSafe for CommunicationPeerCounts
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