pub enum DetectError {
UnsupportedPixelFormat(PixelFormat),
UnsupportedAudioSampleFormat(AudioSampleFormat),
InvalidFrameBuffer {
expected: usize,
actual: usize,
},
InvalidDimensions {
width: u32,
height: u32,
},
InvalidAudioFormat {
sample_rate: u32,
channels: u16,
},
Source(String),
InvalidArgument(String),
Io(Error),
}Expand description
Variants describing detect error.
Variants§
UnsupportedPixelFormat(PixelFormat)
The unsupported pixel format variant.
UnsupportedAudioSampleFormat(AudioSampleFormat)
The unsupported audio sample format variant.
InvalidFrameBuffer
The invalid frame buffer variant.
Fields
InvalidDimensions
The invalid dimensions variant.
InvalidAudioFormat
The invalid audio format variant.
Source(String)
The source variant.
InvalidArgument(String)
The invalid argument variant.
Io(Error)
The I/O variant.
Trait Implementations§
Source§impl Debug for DetectError
impl Debug for DetectError
Source§impl Display for DetectError
impl Display for DetectError
Source§impl Error for DetectError
impl Error for DetectError
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()
Auto Trait Implementations§
impl Freeze for DetectError
impl !RefUnwindSafe for DetectError
impl Send for DetectError
impl Sync for DetectError
impl Unpin for DetectError
impl UnsafeUnpin for DetectError
impl !UnwindSafe for DetectError
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