pub struct MicCaptureHandle(pub Mutex<Option<MicCapturePipeline>>);Expand description
Tauri-managed handle for the active mic pipeline. Mirror of
crate::preview::CameraPipelineHandle. Wrapping
Option<MicCapturePipeline> in a Mutex rather than an
AtomicCell keeps the dep surface small; contention is bounded
by user start/stop clicks, which can’t race meaningfully.
Tuple Fields§
§0: Mutex<Option<MicCapturePipeline>>Implementations§
Source§impl MicCaptureHandle
impl MicCaptureHandle
Sourcepub fn install(&self, pipeline: MicCapturePipeline)
pub fn install(&self, pipeline: MicCapturePipeline)
Install a freshly-spawned pipeline. If one was already running, it’s dropped first (which kills + joins the previous worker before the new one starts). Idempotent under concurrent calls — the mutex serialises the swap.
Trait Implementations§
Source§impl Default for MicCaptureHandle
impl Default for MicCaptureHandle
Source§fn default() -> MicCaptureHandle
fn default() -> MicCaptureHandle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MicCaptureHandle
impl RefUnwindSafe for MicCaptureHandle
impl Send for MicCaptureHandle
impl Sync for MicCaptureHandle
impl Unpin for MicCaptureHandle
impl UnsafeUnpin for MicCaptureHandle
impl UnwindSafe for MicCaptureHandle
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().