pub enum LavaFlowError {
Show 16 variants
InvalidProcessName {
value: String,
reason: ValidationReason,
},
InvalidChannelId {
value: String,
reason: ValidationReason,
},
InvalidHostname {
value: String,
reason: ValidationReason,
},
HostnameDetection(Error),
InvalidAllocationRequest {
size: usize,
reason: AllocationReason,
},
GpuDeviceNotFound {
device_id: u32,
},
UnsupportedInterprocessHandle {
kind: &'static str,
},
GpuBackendUnavailable,
VulkanOperation {
operation: &'static str,
details: String,
},
AllocatorStatePoisoned {
component: &'static str,
},
SharedMemoryOperation {
operation: &'static str,
source: Error,
},
ChannelMetadataCodec {
operation: &'static str,
source: Error,
},
UnsupportedMetadataEncoding {
encoding: &'static str,
},
ChannelTransportOperation {
operation: &'static str,
source: Error,
},
ChannelDisconnected,
UnsupportedChannelBufferKind {
kind: &'static str,
},
}Expand description
Top-level error type for lava-flow core APIs.
Variants§
InvalidProcessName
Process name validation failed.
Fields
reason: ValidationReasonStructured reason for rejection.
InvalidChannelId
Channel ID validation failed.
Fields
reason: ValidationReasonStructured reason for rejection.
InvalidHostname
Hostname validation failed.
Fields
reason: ValidationReasonStructured reason for rejection.
HostnameDetection(Error)
Hostname detection via OS APIs failed.
InvalidAllocationRequest
Memory allocation request failed validation.
Fields
reason: AllocationReasonStructured reason for rejection.
GpuDeviceNotFound
A requested GPU device id is not known by the allocator.
UnsupportedInterprocessHandle
Interprocess handle kind is not supported for the requested operation.
GPU allocation was requested but no GPU backend is available.
VulkanOperation
Vulkan backend operation failed.
Fields
AllocatorStatePoisoned
Internal allocator state lock was poisoned by a prior panic.
OS shared-memory operation failed.
ChannelMetadataCodec
Channel metadata serialization or deserialization failed.
Fields
UnsupportedMetadataEncoding
Requested channel metadata encoding is not implemented.
ChannelTransportOperation
Channel transport I/O failed during a platform operation.
ChannelDisconnected
Channel transport was disconnected before the operation completed.
UnsupportedChannelBufferKind
Channel buffer kind is not supported by the selected transport.