pub enum VoiceActivityError {
LoadModel(Box<dyn Error + Send + Sync>),
InvalidFrameLength {
actual_samples: usize,
expected_samples: usize,
},
Inference(Box<dyn Error + Send + Sync>),
InvalidProbability(f32),
}Available on non-
target_family=wasm only.Variants§
LoadModel(Box<dyn Error + Send + Sync>)
InvalidFrameLength
Inference(Box<dyn Error + Send + Sync>)
InvalidProbability(f32)
Trait Implementations§
Source§impl Debug for VoiceActivityError
impl Debug for VoiceActivityError
Source§impl Display for VoiceActivityError
impl Display for VoiceActivityError
Source§impl Error for VoiceActivityError
impl Error for VoiceActivityError
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 !RefUnwindSafe for VoiceActivityError
impl !UnwindSafe for VoiceActivityError
impl Freeze for VoiceActivityError
impl Send for VoiceActivityError
impl Sync for VoiceActivityError
impl Unpin for VoiceActivityError
impl UnsafeUnpin for VoiceActivityError
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