#[non_exhaustive]pub enum WgpuFilterError {
InvalidOption(String),
ParamsTypeMismatch(String),
}Expand description
Errors from WgpuFrameFilterBuilder and the filter’s configuration
surface (mirrors SubtitleError for the subtitle feature; converts
into crate::error::Error::WgpuFilter).
Runtime failures (device loss, oversized frames, unsupported formats)
surface through the pipeline as
FrameFilterError
instead — this type covers what can go wrong before a frame flows.
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.
InvalidOption(String)
A builder option is invalid: missing shader, a shader_yuv_wgsl
body violating its contract, a zero output dimension, a params
struct with a bad size, or frames_in_flight out of range.
ParamsTypeMismatch(String)
params_handle
was called with a type whose size does not match the value given to
params.
Trait Implementations§
Source§impl Debug for WgpuFilterError
impl Debug for WgpuFilterError
Source§impl Display for WgpuFilterError
impl Display for WgpuFilterError
Source§impl Error for WgpuFilterError
impl Error for WgpuFilterError
1.30.0 · 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<WgpuFilterError> for Error
impl From<WgpuFilterError> for Error
Source§fn from(source: WgpuFilterError) -> Self
fn from(source: WgpuFilterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WgpuFilterError
impl RefUnwindSafe for WgpuFilterError
impl Send for WgpuFilterError
impl Sync for WgpuFilterError
impl Unpin for WgpuFilterError
impl UnsafeUnpin for WgpuFilterError
impl UnwindSafe for WgpuFilterError
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