pub enum FrameEvent {
Pcm {
seq: u64,
source: PcmSource,
sample_rate: u32,
channels: u8,
samples_base64: String,
},
Level {
mic_rms: f32,
loopback_rms: f32,
},
Failure {
category: String,
message: String,
},
}Expand description
Events emitted to the JS side over the Tauri Channel.
Variants§
Pcm
One 20 ms frame of 16 kHz mono PCM, base64-encoded i16 LE bytes.
Level
Throttled (10 Hz) RMS levels for meter UI, normalized 0..1.
Failure
Terminal failure of the capture worker. category is one of
"permission" | "device" | "io" | "lifecycle".
Trait Implementations§
Source§impl Clone for FrameEvent
impl Clone for FrameEvent
Source§fn clone(&self) -> FrameEvent
fn clone(&self) -> FrameEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameEvent
impl Debug for FrameEvent
Auto Trait Implementations§
impl Freeze for FrameEvent
impl RefUnwindSafe for FrameEvent
impl Send for FrameEvent
impl Sync for FrameEvent
impl Unpin for FrameEvent
impl UnsafeUnpin for FrameEvent
impl UnwindSafe for FrameEvent
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