pub enum RingKernelError {
Show 49 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,
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.
InvalidState
Invalid kernel state.
LaunchFailed(String)
Kernel launch failed.
CompilationError(String)
Kernel compilation failed (NVRTC, shader compilation, etc.).
QueueFull
Queue is full, message cannot be enqueued.
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.
Timeout(Duration)
Message timeout.
AllocationFailed
GPU memory allocation failed.
HostAllocationFailed
Host memory allocation failed.
TransferFailed(String)
Memory transfer failed.
InvalidAlignment
Invalid memory alignment.
OutOfMemory
Out of GPU memory.
PoolExhausted
Memory pool exhausted.
MemoryError(String)
Generic memory error.
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.
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
impl RingKernelError
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Returns true if this error is recoverable.
Sourcepub fn is_resource_error(&self) -> bool
pub fn is_resource_error(&self) -> bool
Returns true if this error indicates a resource issue.