Skip to main content

CommunicationManifestError

Enum CommunicationManifestError 

Source
#[non_exhaustive]
pub enum CommunicationManifestError {
Show 26 variants InvalidBoundaryContract, RankOutOfRange { rank: usize, world_size: usize, }, TopologyMismatch, InvalidTopologyProjection, InvalidOperationLimits, InvalidOperationDtypes, InvalidCompletionPolicy, InvalidCompletionCapabilities, DuplicateOrMissingOperation, EmptyGroup { id: CollectiveGroupId, }, DuplicateGroupMember { id: CollectiveGroupId, }, GroupMemberOutOfRange { id: CollectiveGroupId, world_size: usize, }, WrongLocalIndex { id: CollectiveGroupId, }, DuplicateGroupId { id: CollectiveGroupId, }, WrongGroupOrder { id: CollectiveGroupId, expected: usize, actual: usize, }, InvalidRouteEndpoints { id: CommunicationRouteId, }, InvalidRouteOperation { id: CommunicationRouteId, }, RouteEndpointOutOfRange { id: CommunicationRouteId, world_size: usize, }, DuplicateRouteId { id: CommunicationRouteId, }, WrongRouteOrder { id: CommunicationRouteId, expected: usize, actual: usize, }, WrongManifestCount { expected: usize, actual: usize, }, MissingRankManifest { rank: usize, }, DuplicateRankManifest { rank: usize, }, IncompatibleRankManifest { rank: usize, }, DescriptorCountOverflow, InvalidPeerCounts { group_size: usize, send: usize, receive: usize, },
}
Expand description

Invalid opaque communication manifest or topology projection.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

InvalidBoundaryContract

A role-exact route schema is empty, incoherent, or not representable.

§

RankOutOfRange

Manifest rank is outside the declared world.

Fields

§rank: usize

Invalid rank.

§world_size: usize

Declared world size.

§

TopologyMismatch

Rank topology and complete topology disagree.

§

InvalidTopologyProjection

A validated core topology could not be projected consistently.

§

InvalidOperationLimits

Tensor/count limits were absent or incoherent for the operation.

§

InvalidOperationDtypes

Dtype requirements were empty or repeated.

§

InvalidCompletionPolicy

A bounded completion policy has no positive representable deadline.

§

InvalidCompletionCapabilities

Completion capability modes were absent or repeated.

§

DuplicateOrMissingOperation

A group requirement was empty or repeated an operation.

§

EmptyGroup

A group has no members.

Fields

§id: CollectiveGroupId

Invalid group.

§

DuplicateGroupMember

A group repeats a world rank.

Fields

§id: CollectiveGroupId

Invalid group.

§

GroupMemberOutOfRange

A group member is outside the manifest world.

Fields

§id: CollectiveGroupId

Invalid group.

§world_size: usize

Declared world size.

§

WrongLocalIndex

A group local index does not identify the manifest rank exactly.

Fields

§id: CollectiveGroupId

Invalid group.

§

DuplicateGroupId

Group IDs are not unique.

Fields

§id: CollectiveGroupId

Repeated group identity.

§

WrongGroupOrder

Group descriptors are not in their declared canonical order.

Fields

§id: CollectiveGroupId

Invalid group.

§expected: usize

Required position.

§actual: usize

Declared position.

§

InvalidRouteEndpoints

A route is not directed between distinct endpoints.

Fields

§id: CommunicationRouteId

Invalid route.

§

InvalidRouteOperation

A route carries a non-point-to-point operation.

Fields

§id: CommunicationRouteId

Invalid route.

§

RouteEndpointOutOfRange

A route endpoint is outside the manifest world.

Fields

§id: CommunicationRouteId

Invalid route.

§world_size: usize

Declared world size.

§

DuplicateRouteId

Route IDs are not unique.

Fields

§id: CommunicationRouteId

Repeated route identity.

§

WrongRouteOrder

Route descriptors are not in their declared canonical order.

Fields

§id: CommunicationRouteId

Invalid route.

§expected: usize

Required position.

§actual: usize

Declared position.

§

WrongManifestCount

The number of per-rank projections does not match the world.

Fields

§expected: usize

Expected world size.

§actual: usize

Actual manifest count.

§

MissingRankManifest

No manifest was supplied for a world rank.

Fields

§rank: usize

Missing world rank.

§

DuplicateRankManifest

More than one manifest was supplied for a world rank.

Fields

§rank: usize

Repeated world rank.

§

IncompatibleRankManifest

A rank derived different global descriptors or local positions.

Fields

§rank: usize

Incompatible world rank.

§

DescriptorCountOverflow

The projected descriptor count cannot be represented by the stable ID.

§

InvalidPeerCounts

Variable exchange counts do not match opaque group membership.

Fields

§group_size: usize

Expected opaque group cardinality.

§send: usize

Supplied send-count cardinality.

§receive: usize

Supplied receive-count cardinality.

Trait Implementations§

Source§

impl Clone for CommunicationManifestError

Source§

fn clone(&self) -> CommunicationManifestError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CommunicationManifestError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for CommunicationManifestError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CommunicationManifestError

Source§

impl Error for CommunicationManifestError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<CommunicationManifestError> for CommunicationRealizationError

Source§

fn from(source: CommunicationManifestError) -> Self

Converts to this type from the input type.
Source§

impl From<CommunicationManifestError> for CommunicationManifestConsensusError

Source§

fn from(source: CommunicationManifestError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for CommunicationManifestError

Source§

fn eq(&self, other: &CommunicationManifestError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CommunicationManifestError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.