pub enum VadError {
InvalidSampleRate(u32),
InvalidFrameSize {
got: usize,
expected: usize,
},
BackendError(String),
}Expand description
Errors that can occur during voice activity detection.
Variants§
InvalidSampleRate(u32)
The provided sample rate is not supported by the backend.
InvalidFrameSize
The provided frame size does not match the expected size for the backend.
BackendError(String)
An error originating from the underlying VAD backend.
Trait Implementations§
Source§impl Error for VadError
impl Error for VadError
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()
Auto Trait Implementations§
impl Freeze for VadError
impl RefUnwindSafe for VadError
impl Send for VadError
impl Sync for VadError
impl Unpin for VadError
impl UnsafeUnpin for VadError
impl UnwindSafe for VadError
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