pub enum FftError {
ValidationError(String),
WgpuError(String),
IoError(Error),
NoDevice,
InvalidSize(String),
ShaderError(String),
BatchError(String),
BackendError(String),
Other(String),
}Expand description
Main error type for FFT operations
Variants§
ValidationError(String)
Input validation error (wrong size, empty, etc.)
WgpuError(String)
WGPU-related error
IoError(Error)
I/O error
NoDevice
No GPU device available
InvalidSize(String)
Invalid FFT size
ShaderError(String)
Compute shader error
BatchError(String)
Batch processing error
BackendError(String)
GPU backend error (CUDA, HIP, ROCm)
Other(String)
Generic error message
Trait Implementations§
Source§impl Error for FftError
impl Error for FftError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RequestAdapterError> for FftError
Convert wgpu::RequestAdapterError to FftError
impl From<RequestAdapterError> for FftError
Convert wgpu::RequestAdapterError to FftError
Source§fn from(e: RequestAdapterError) -> Self
fn from(e: RequestAdapterError) -> Self
Converts to this type from the input type.
Source§impl From<RequestDeviceError> for FftError
Convert wgpu::RequestDeviceError to FftError
impl From<RequestDeviceError> for FftError
Convert wgpu::RequestDeviceError to FftError
Source§fn from(e: RequestDeviceError) -> Self
fn from(e: RequestDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FftError
impl !RefUnwindSafe for FftError
impl Send for FftError
impl Sync for FftError
impl Unpin for FftError
impl UnsafeUnpin for FftError
impl !UnwindSafe for FftError
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