RingKernelError

Enum RingKernelError 

Source
pub enum RingKernelError {
Show 50 variants KernelNotFound(String), KernelAlreadyActive(String), KernelNotActive(String), KernelTerminated(String), InvalidStateTransition { from: String, to: String, }, InvalidState { expected: String, actual: String, }, LaunchFailed(String), CompilationError(String), QueueFull { capacity: usize, }, QueueEmpty, SerializationError(String), DeserializationError(String), ValidationError(String), MessageTooLarge { size: usize, max: usize, }, Timeout(Duration), AllocationFailed { size: usize, reason: String, }, HostAllocationFailed { size: usize, }, TransferFailed(String), InvalidAlignment { expected: usize, actual: usize, }, OutOfMemory { requested: usize, available: usize, }, PoolExhausted, InvalidIndex(usize), MemoryError(String), BackendUnavailable(String), BackendInitFailed(String), NoDeviceFound, DeviceSelectionFailed(String), BackendError(String), DeadlockDetected, LockPoisoned, ChannelClosed, ClockSkew { skew_ms: u64, max_ms: u64, }, InvalidTimestamp, K2KError(String), K2KDestinationNotFound(String), K2KDeliveryFailed(String), PubSubError(String), TopicNotFound(String), SubscriptionError(String), MultiGpuError(String), DeviceNotAvailable(String), CrossDeviceTransferFailed(String), TelemetryError(String), MetricsCollectionFailed(String), InvalidConfig(String), MissingConfig(String), IoError(Error), Internal(String), NotSupported(String), Cancelled,
}
Expand description

Comprehensive error type for RingKernel operations.

Variants§

§

KernelNotFound(String)

Kernel not found with the given ID.

§

KernelAlreadyActive(String)

Kernel is already active.

§

KernelNotActive(String)

Kernel is not active.

§

KernelTerminated(String)

Kernel has already terminated.

§

InvalidStateTransition

Invalid kernel state transition.

Fields

§from: String

Current state

§to: String

Attempted target state

§

InvalidState

Invalid kernel state.

Fields

§expected: String

Expected state

§actual: String

Actual state

§

LaunchFailed(String)

Kernel launch failed.

§

CompilationError(String)

Kernel compilation failed (NVRTC, shader compilation, etc.).

§

QueueFull

Queue is full, message cannot be enqueued.

Fields

§capacity: usize

Queue capacity

§

QueueEmpty

Queue is empty, no message to dequeue.

§

SerializationError(String)

Message serialization failed.

§

DeserializationError(String)

Message deserialization failed.

§

ValidationError(String)

Message validation failed.

§

MessageTooLarge

Message too large.

Fields

§size: usize

Actual message size

§max: usize

Maximum allowed size

§

Timeout(Duration)

Message timeout.

§

AllocationFailed

GPU memory allocation failed.

Fields

§size: usize

Requested size

§reason: String

Failure reason

§

HostAllocationFailed

Host memory allocation failed.

Fields

§size: usize

Requested size

§

TransferFailed(String)

Memory transfer failed.

§

InvalidAlignment

Invalid memory alignment.

Fields

§expected: usize

Expected alignment

§actual: usize

Actual alignment

§

OutOfMemory

Out of GPU memory.

Fields

§requested: usize

Requested size

§available: usize

Available memory

§

PoolExhausted

Memory pool exhausted.

§

InvalidIndex(usize)

Invalid index (out of bounds).

§

MemoryError(String)

Generic memory error.

§

BackendUnavailable(String)

Backend not available.

§

BackendInitFailed(String)

Backend initialization failed.

§

NoDeviceFound

No suitable GPU device found.

§

DeviceSelectionFailed(String)

Device selection failed.

§

BackendError(String)

Backend operation failed.

§

DeadlockDetected

Deadlock detected.

§

LockPoisoned

Lock poisoned.

§

ChannelClosed

Channel closed.

§

ClockSkew

Clock skew too large.

Fields

§skew_ms: u64

Detected skew in milliseconds

§max_ms: u64

Maximum allowed skew

§

InvalidTimestamp

Invalid timestamp.

§

K2KError(String)

K2K messaging error.

§

K2KDestinationNotFound(String)

K2K destination not found.

§

K2KDeliveryFailed(String)

K2K delivery failed.

§

PubSubError(String)

Pub/sub error.

§

TopicNotFound(String)

Topic not found.

§

SubscriptionError(String)

Subscription error.

§

MultiGpuError(String)

Multi-GPU coordination error.

§

DeviceNotAvailable(String)

Device not available.

§

CrossDeviceTransferFailed(String)

Cross-device transfer failed.

§

TelemetryError(String)

Telemetry error.

§

MetricsCollectionFailed(String)

Metrics collection failed.

§

InvalidConfig(String)

Invalid configuration.

§

MissingConfig(String)

Missing required configuration.

§

IoError(Error)

I/O error wrapper.

§

Internal(String)

Internal error.

§

NotSupported(String)

Feature not supported.

§

Cancelled

Operation cancelled.

Implementations§

Source§

impl RingKernelError

Source

pub fn is_recoverable(&self) -> bool

Returns true if this error is recoverable.

Source

pub fn is_resource_error(&self) -> bool

Returns true if this error indicates a resource issue.

Source

pub fn is_fatal(&self) -> bool

Returns true if this is a fatal error requiring restart.

Trait Implementations§

Source§

impl Debug for RingKernelError

Source§

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

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

impl Display for RingKernelError

Source§

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

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

impl Error for RingKernelError

Source§

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

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

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0§

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

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
§

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<Error> for RingKernelError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> Error for T
where T: Error + 'static,

Source§

fn as_error(&self) -> &(dyn Error + 'static)

Gets this error as an std::error::Error.
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
§

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

§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.