#[non_exhaustive]pub enum AbortReason {
NotHostResident,
NonCompact,
UnsupportedDType,
TooManyElements,
RankTooLarge,
HostAccess,
Unknown(u8),
}Expand description
Why a sender aborted before offering a payload.
An abort is sent as a header frame with a non-zero status and no payload, so a receiver that is already blocking learns the outcome instead of hanging.
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.
NotHostResident
The tensor’s storage is not host-addressed memory.
NonCompact
The payload is not one compact column-major slice.
UnsupportedDType
The dtype has no wire encoding (a caller-owned external payload).
TooManyElements
The element count exceeds one MPI message.
RankTooLarge
The rank exceeds crate::MAX_WIRE_RANK.
HostAccess
The host payload could not be borrowed.
Unknown(u8)
An abort code this version does not know.
Trait Implementations§
Source§impl Clone for AbortReason
impl Clone for AbortReason
impl Copy for AbortReason
Source§impl Debug for AbortReason
impl Debug for AbortReason
Source§impl Display for AbortReason
impl Display for AbortReason
impl Eq for AbortReason
Source§impl PartialEq for AbortReason
impl PartialEq for AbortReason
impl StructuralPartialEq for AbortReason
Auto Trait Implementations§
impl Freeze for AbortReason
impl RefUnwindSafe for AbortReason
impl Send for AbortReason
impl Sync for AbortReason
impl Unpin for AbortReason
impl UnsafeUnpin for AbortReason
impl UnwindSafe for AbortReason
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