pub struct MicrophoneWidgetState {
pub config: AudioConfig,
pub started: bool,
pub on_frame: OptionOnAudioFrame,
}Expand description
Live state for one microphone widget, carried across relayout by
[merge_microphone_state].
Fields§
§config: AudioConfigThe requested capture configuration (rate + channels).
started: booltrue once the capture thread has been started.
on_frame: OptionOnAudioFrameOptional user hook invoked with each captured frame (save / effects /
send). Re-set on every fresh build (see [merge_microphone_state]).
Auto Trait Implementations§
impl Freeze for MicrophoneWidgetState
impl RefUnwindSafe for MicrophoneWidgetState
impl Send for MicrophoneWidgetState
impl Sync for MicrophoneWidgetState
impl Unpin for MicrophoneWidgetState
impl UnsafeUnpin for MicrophoneWidgetState
impl UnwindSafe for MicrophoneWidgetState
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
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