Skip to main content

LavaFlowError

Enum LavaFlowError 

Source
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

§value: String

The original rejected input.

§reason: ValidationReason

Structured reason for rejection.

§

InvalidChannelId

Channel ID validation failed.

Fields

§value: String

The original rejected input.

§reason: ValidationReason

Structured reason for rejection.

§

InvalidHostname

Hostname validation failed.

Fields

§value: String

The original rejected input.

§reason: ValidationReason

Structured reason for rejection.

§

HostnameDetection(Error)

Hostname detection via OS APIs failed.

§

InvalidAllocationRequest

Memory allocation request failed validation.

Fields

§size: usize

Requested allocation size in bytes.

§reason: AllocationReason

Structured reason for rejection.

§

GpuDeviceNotFound

A requested GPU device id is not known by the allocator.

Fields

§device_id: u32

Requested device id.

§

UnsupportedInterprocessHandle

Interprocess handle kind is not supported for the requested operation.

Fields

§kind: &'static str

Handle kind string for diagnostics.

§

GpuBackendUnavailable

GPU allocation was requested but no GPU backend is available.

§

VulkanOperation

Vulkan backend operation failed.

Fields

§operation: &'static str

Vulkan operation name.

§details: String

Human-readable details, typically a Vulkan result code.

§

AllocatorStatePoisoned

Internal allocator state lock was poisoned by a prior panic.

Fields

§component: &'static str

Internal component that failed lock acquisition.

§

SharedMemoryOperation

OS shared-memory operation failed.

Fields

§operation: &'static str

Shared-memory operation name.

§source: Error

Source OS error.

§

ChannelMetadataCodec

Channel metadata serialization or deserialization failed.

Fields

§operation: &'static str

Metadata codec operation name.

§source: Error

Source serialization error.

§

UnsupportedMetadataEncoding

Requested channel metadata encoding is not implemented.

Fields

§encoding: &'static str

Human-readable encoding name.

§

ChannelTransportOperation

Channel transport I/O failed during a platform operation.

Fields

§operation: &'static str

Transport operation name.

§source: Error

Source I/O error.

§

ChannelDisconnected

Channel transport was disconnected before the operation completed.

§

UnsupportedChannelBufferKind

Channel buffer kind is not supported by the selected transport.

Fields

§kind: &'static str

Buffer kind string for diagnostics.

Trait Implementations§

Source§

impl Debug for LavaFlowError

Source§

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

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

impl Display for LavaFlowError

Source§

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

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

impl Error for LavaFlowError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.