pub struct CommunicationManifest { /* private fields */ }Expand description
Complete opaque communication description as viewed by one world rank.
Implementations§
Source§impl CommunicationManifest
impl CommunicationManifest
Sourcepub fn new(
world_size: usize,
rank: usize,
groups: Vec<CommunicationGroupDescriptor>,
routes: Vec<CommunicationRouteDescriptor>,
) -> Result<Self, CommunicationManifestError>
pub fn new( world_size: usize, rank: usize, groups: Vec<CommunicationGroupDescriptor>, routes: Vec<CommunicationRouteDescriptor>, ) -> Result<Self, CommunicationManifestError>
Validates world geometry, membership, local positions, endpoints, and order.
Sourcepub fn with_completion_policy(
self,
policy: CommunicationCompletionPolicy,
) -> Self
pub fn with_completion_policy( self, policy: CommunicationCompletionPolicy, ) -> Self
Attaches the exact bounded-completion policy selected before realization.
Sourcepub const fn world_size(&self) -> usize
pub const fn world_size(&self) -> usize
Total process count.
Sourcepub fn groups(&self) -> &[CommunicationGroupDescriptor]
pub fn groups(&self) -> &[CommunicationGroupDescriptor]
This rank’s opaque groups in canonical collective-creation order.
Sourcepub fn routes(&self) -> &[CommunicationRouteDescriptor]
pub fn routes(&self) -> &[CommunicationRouteDescriptor]
Directed routes in canonical submission order.
Sourcepub const fn completion_policy(&self) -> Option<CommunicationCompletionPolicy>
pub const fn completion_policy(&self) -> Option<CommunicationCompletionPolicy>
Selected bounded-completion policy, if this manifest requires one.
Trait Implementations§
Source§impl Clone for CommunicationManifest
impl Clone for CommunicationManifest
Source§fn clone(&self) -> CommunicationManifest
fn clone(&self) -> CommunicationManifest
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 CommunicationManifest
impl Debug for CommunicationManifest
Source§impl<'de> Deserialize<'de> for CommunicationManifest
impl<'de> Deserialize<'de> for CommunicationManifest
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 CommunicationManifest
Source§impl PartialEq for CommunicationManifest
impl PartialEq for CommunicationManifest
Source§impl Serialize for CommunicationManifest
impl Serialize for CommunicationManifest
impl StructuralPartialEq for CommunicationManifest
Auto Trait Implementations§
impl Freeze for CommunicationManifest
impl RefUnwindSafe for CommunicationManifest
impl Send for CommunicationManifest
impl Sync for CommunicationManifest
impl Unpin for CommunicationManifest
impl UnsafeUnpin for CommunicationManifest
impl UnwindSafe for CommunicationManifest
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