pub struct CommunicationRouteDescriptor { /* private fields */ }Expand description
Directed route with exact mechanical transfer requirements.
Implementations§
Source§impl CommunicationRouteDescriptor
impl CommunicationRouteDescriptor
Sourcepub fn new(
id: CommunicationRouteId,
submission_order: usize,
source: usize,
destination: usize,
requirement: CommunicationOperationRequirement,
) -> Result<Self, CommunicationManifestError>
pub fn new( id: CommunicationRouteId, submission_order: usize, source: usize, destination: usize, requirement: CommunicationOperationRequirement, ) -> Result<Self, CommunicationManifestError>
Validates a directed point-to-point route independent of world geometry.
Sourcepub fn with_boundary_contract(
self,
boundary: RoleExactBoundaryContract,
) -> Result<Self, CommunicationManifestError>
pub fn with_boundary_contract( self, boundary: RoleExactBoundaryContract, ) -> Result<Self, CommunicationManifestError>
Attaches the exact role/schema framing contract selected for this route.
Sourcepub const fn id(&self) -> CommunicationRouteId
pub const fn id(&self) -> CommunicationRouteId
Opaque stable route identity.
Sourcepub const fn submission_order(&self) -> usize
pub const fn submission_order(&self) -> usize
Canonical route-submission position shared by every world rank.
Sourcepub const fn destination(&self) -> usize
pub const fn destination(&self) -> usize
Destination world rank.
Sourcepub const fn requirement(&self) -> &CommunicationOperationRequirement
pub const fn requirement(&self) -> &CommunicationOperationRequirement
Exact transfer dtype, tensor-count, shape, and completion requirement.
Sourcepub const fn boundary_contract(&self) -> Option<&RoleExactBoundaryContract>
pub const fn boundary_contract(&self) -> Option<&RoleExactBoundaryContract>
Exact architecture-selected framing contract, when this is a boundary route.
Trait Implementations§
Source§impl Clone for CommunicationRouteDescriptor
impl Clone for CommunicationRouteDescriptor
Source§fn clone(&self) -> CommunicationRouteDescriptor
fn clone(&self) -> CommunicationRouteDescriptor
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 CommunicationRouteDescriptor
impl Debug for CommunicationRouteDescriptor
Source§impl<'de> Deserialize<'de> for CommunicationRouteDescriptor
impl<'de> Deserialize<'de> for CommunicationRouteDescriptor
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 CommunicationRouteDescriptor
impl StructuralPartialEq for CommunicationRouteDescriptor
Auto Trait Implementations§
impl Freeze for CommunicationRouteDescriptor
impl RefUnwindSafe for CommunicationRouteDescriptor
impl Send for CommunicationRouteDescriptor
impl Sync for CommunicationRouteDescriptor
impl Unpin for CommunicationRouteDescriptor
impl UnsafeUnpin for CommunicationRouteDescriptor
impl UnwindSafe for CommunicationRouteDescriptor
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