pub struct Detector { /* private fields */ }Expand description
Streaming detector for 16 kHz mono signed 16-bit PCM.
Implementations§
Source§impl Detector
impl Detector
pub fn from_config(path: impl AsRef<Path>) -> Result<Self>
pub fn from_config_with_runtime( path: impl AsRef<Path>, runtime: Runtime, ) -> Result<Self>
pub fn builder(model_path: impl Into<PathBuf>) -> DetectorBuilder
pub fn config(&self) -> &Config
Auto Trait Implementations§
impl !Send for Detector
impl !Sync for Detector
impl Freeze for Detector
impl RefUnwindSafe for Detector
impl Unpin for Detector
impl UnsafeUnpin for Detector
impl UnwindSafe for Detector
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