pub struct StreamingHandle { /* private fields */ }Expand description
Handle returned by start_streaming to control the streaming thread.
Dropping the handle sends a stop signal (by disconnecting the channel),
but does not block until the thread exits. Call [stop_and_join]
when you need to guarantee the thread has exited before reusing the
Transcriber (e.g. before starting a final transcription pass).
Implementations§
Source§impl StreamingHandle
impl StreamingHandle
Sourcepub fn stop_and_join(self)
pub fn stop_and_join(self)
Signal the streaming thread to stop and block until it exits.
Sets the abort flag first so any in-progress whisper inference is cancelled immediately, then sends the channel stop signal and joins the thread.
Auto Trait Implementations§
impl Freeze for StreamingHandle
impl !RefUnwindSafe for StreamingHandle
impl Send for StreamingHandle
impl Sync for StreamingHandle
impl Unpin for StreamingHandle
impl UnsafeUnpin for StreamingHandle
impl !UnwindSafe for StreamingHandle
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