#[non_exhaustive]pub enum HardwareError {
Vulkan(i32),
V4l2(i32),
Wgpu,
MediaFoundation(i32),
Cuda(i32),
Io(i32),
Alsa(i32),
PulseAudio(i32),
PipeWire(i32),
Peripheral,
Other,
}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.
Vulkan(i32)
VkResult code from a Vulkan call.
V4l2(i32)
errno from a V4L2 ioctl.
Wgpu
wgpu device or queue error.
MediaFoundation(i32)
HRESULT from a Windows Media Foundation / COM call.
Cuda(i32)
CUresult code from a CUDA Driver API call.
Io(i32)
Raw OS error code from a filesystem operation (FileSrc /
FileSink), zero when the OS reported none.
Alsa(i32)
ALSA snd_* return code (negative errno) from alsasink.
PulseAudio(i32)
PulseAudio error code (pa_error_code_t) from pulsesink.
PipeWire(i32)
PipeWire / SPA failure from pipewiresink / pipewiresrc; carries a
negative errno where one is available, else -1.
Peripheral
MCU peripheral bus transfer failure (SPI / I2C / I2S via the
embedded-hal seams in g2g-mcu). No payload: HAL error types are
generic per implementation and the no_std core cannot carry them.
Other
Other backend-specific failure.
Trait Implementations§
Source§impl Clone for HardwareError
impl Clone for HardwareError
Source§fn clone(&self) -> HardwareError
fn clone(&self) -> HardwareError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HardwareError
impl Debug for HardwareError
impl Eq for HardwareError
Source§impl PartialEq for HardwareError
impl PartialEq for HardwareError
impl StructuralPartialEq for HardwareError
Auto Trait Implementations§
impl Freeze for HardwareError
impl RefUnwindSafe for HardwareError
impl Send for HardwareError
impl Sync for HardwareError
impl Unpin for HardwareError
impl UnsafeUnpin for HardwareError
impl UnwindSafe for HardwareError
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