pub struct CommunicationGroupDescriptor { /* private fields */ }Expand description
Ordered membership and exact requirements for one opaque group.
Implementations§
Source§impl CommunicationGroupDescriptor
impl CommunicationGroupDescriptor
Sourcepub fn new(
id: CollectiveGroupId,
creation_order: usize,
members: Vec<usize>,
local_index: Option<usize>,
requirements: CommunicationGroupRequirements,
) -> Result<Self, CommunicationManifestError>
pub fn new( id: CollectiveGroupId, creation_order: usize, members: Vec<usize>, local_index: Option<usize>, requirements: CommunicationGroupRequirements, ) -> Result<Self, CommunicationManifestError>
Validates local ordered membership independent of world geometry.
Sourcepub const fn id(&self) -> CollectiveGroupId
pub const fn id(&self) -> CollectiveGroupId
Opaque stable group identity.
Sourcepub const fn creation_order(&self) -> usize
pub const fn creation_order(&self) -> usize
Canonical group-creation position shared by every world rank.
Sourcepub const fn local_index(&self) -> Option<usize>
pub const fn local_index(&self) -> Option<usize>
This manifest rank’s position, or None when it does not participate.
Sourcepub const fn requirements(&self) -> &CommunicationGroupRequirements
pub const fn requirements(&self) -> &CommunicationGroupRequirements
Exact operations and limits required on the group.
Sourcepub fn collective_descriptor(&self) -> Option<CollectiveGroupDescriptor>
pub fn collective_descriptor(&self) -> Option<CollectiveGroupDescriptor>
Returns the established core descriptor when this rank participates.
Backends can consume this narrow local descriptor without learning the semantic topology that produced it.
Trait Implementations§
Source§impl Clone for CommunicationGroupDescriptor
impl Clone for CommunicationGroupDescriptor
Source§fn clone(&self) -> CommunicationGroupDescriptor
fn clone(&self) -> CommunicationGroupDescriptor
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 CommunicationGroupDescriptor
impl Debug for CommunicationGroupDescriptor
Source§impl<'de> Deserialize<'de> for CommunicationGroupDescriptor
impl<'de> Deserialize<'de> for CommunicationGroupDescriptor
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 CommunicationGroupDescriptor
impl StructuralPartialEq for CommunicationGroupDescriptor
Auto Trait Implementations§
impl Freeze for CommunicationGroupDescriptor
impl RefUnwindSafe for CommunicationGroupDescriptor
impl Send for CommunicationGroupDescriptor
impl Sync for CommunicationGroupDescriptor
impl Unpin for CommunicationGroupDescriptor
impl UnsafeUnpin for CommunicationGroupDescriptor
impl UnwindSafe for CommunicationGroupDescriptor
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