#[non_exhaustive]pub enum RejectReason {
DTypeMismatch,
RankMismatch,
ShapeMismatch,
UnsupportedVersion,
MalformedHeader,
TooManyElements,
DestinationNotWritable,
ByteOrderMismatch,
Unknown(u8),
}Expand description
Why a receiver refused a tensor before its payload was sent.
The code travels in the ack frame, so the sender learns the reason instead of only observing that its send failed.
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.
DTypeMismatch
The receiver’s element type differs from the header’s dtype.
RankMismatch
The receiver’s rank differs from the header’s rank.
ShapeMismatch
The receiver’s shape differs from the header’s shape.
UnsupportedVersion
The receiver does not implement the header’s protocol version.
MalformedHeader
The header frame could not be decoded.
TooManyElements
The declared element count exceeds one MPI message.
DestinationNotWritable
The destination buffer refuses host writes (device-only or non-compact).
ByteOrderMismatch
The peer’s element byte order differs from the receiver’s.
Unknown(u8)
A reject code this version does not know.
Trait Implementations§
Source§impl Clone for RejectReason
impl Clone for RejectReason
impl Copy for RejectReason
Source§impl Debug for RejectReason
impl Debug for RejectReason
impl Eq for RejectReason
Source§impl PartialEq for RejectReason
impl PartialEq for RejectReason
impl StructuralPartialEq for RejectReason
Auto Trait Implementations§
impl Freeze for RejectReason
impl RefUnwindSafe for RejectReason
impl Send for RejectReason
impl Sync for RejectReason
impl Unpin for RejectReason
impl UnsafeUnpin for RejectReason
impl UnwindSafe for RejectReason
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