pub struct DistributedSessionDescriptor { /* private fields */ }Expand description
Portable identity of one selected distributed session.
Implementations§
Source§impl DistributedSessionDescriptor
impl DistributedSessionDescriptor
Sourcepub fn new(
world_size: usize,
rank: usize,
groups: Vec<CollectiveGroupDescriptor>,
) -> Result<Self, BackendError>
pub fn new( world_size: usize, rank: usize, groups: Vec<CollectiveGroupDescriptor>, ) -> Result<Self, BackendError>
Validates a mechanism-only distributed session realization.
Sourcepub const fn world_size(&self) -> usize
pub const fn world_size(&self) -> usize
Returns the total process count.
Sourcepub fn groups(&self) -> &[CollectiveGroupDescriptor]
pub fn groups(&self) -> &[CollectiveGroupDescriptor]
Returns ordered opaque group realizations.
Trait Implementations§
Source§impl Clone for DistributedSessionDescriptor
impl Clone for DistributedSessionDescriptor
Source§fn clone(&self) -> DistributedSessionDescriptor
fn clone(&self) -> DistributedSessionDescriptor
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 DistributedSessionDescriptor
impl Debug for DistributedSessionDescriptor
Source§impl<'de> Deserialize<'de> for DistributedSessionDescriptor
impl<'de> Deserialize<'de> for DistributedSessionDescriptor
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 DistributedSessionDescriptor
impl StructuralPartialEq for DistributedSessionDescriptor
Auto Trait Implementations§
impl Freeze for DistributedSessionDescriptor
impl RefUnwindSafe for DistributedSessionDescriptor
impl Send for DistributedSessionDescriptor
impl Sync for DistributedSessionDescriptor
impl Unpin for DistributedSessionDescriptor
impl UnsafeUnpin for DistributedSessionDescriptor
impl UnwindSafe for DistributedSessionDescriptor
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