pub struct CollectiveGroupDescriptor { /* private fields */ }Expand description
Ordered membership for one opaque collective group containing this rank.
Implementations§
Source§impl CollectiveGroupDescriptor
impl CollectiveGroupDescriptor
Sourcepub fn new(
id: CollectiveGroupId,
members: Vec<usize>,
local_rank: usize,
) -> Result<Self, BackendError>
pub fn new( id: CollectiveGroupId, members: Vec<usize>, local_rank: usize, ) -> Result<Self, BackendError>
Validates ordered group membership and the process-local rank.
Sourcepub const fn id(&self) -> CollectiveGroupId
pub const fn id(&self) -> CollectiveGroupId
Returns the opaque group identity.
Sourcepub const fn local_rank(&self) -> usize
pub const fn local_rank(&self) -> usize
Returns this process’s rank within the ordered group.
Trait Implementations§
Source§impl Clone for CollectiveGroupDescriptor
impl Clone for CollectiveGroupDescriptor
Source§fn clone(&self) -> CollectiveGroupDescriptor
fn clone(&self) -> CollectiveGroupDescriptor
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 CollectiveGroupDescriptor
impl Debug for CollectiveGroupDescriptor
Source§impl<'de> Deserialize<'de> for CollectiveGroupDescriptor
impl<'de> Deserialize<'de> for CollectiveGroupDescriptor
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 CollectiveGroupDescriptor
impl StructuralPartialEq for CollectiveGroupDescriptor
Auto Trait Implementations§
impl Freeze for CollectiveGroupDescriptor
impl RefUnwindSafe for CollectiveGroupDescriptor
impl Send for CollectiveGroupDescriptor
impl Sync for CollectiveGroupDescriptor
impl Unpin for CollectiveGroupDescriptor
impl UnsafeUnpin for CollectiveGroupDescriptor
impl UnwindSafe for CollectiveGroupDescriptor
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