pub struct Microphone {
pub mic_id: Option<String>,
pub status: Option<SensorStatus>,
pub level_db: Option<f64>,
pub is_recording: Option<bool>,
pub sample_rate_hz: Option<u32>,
}Expand description
Microphone information.
Fields§
§mic_id: Option<String>Microphone ID
status: Option<SensorStatus>Status
level_db: Option<f64>Current level (dB)
is_recording: Option<bool>Whether recording
sample_rate_hz: Option<u32>Sample rate (Hz)
Trait Implementations§
Source§impl Clone for Microphone
impl Clone for Microphone
Source§fn clone(&self) -> Microphone
fn clone(&self) -> Microphone
Returns a duplicate of the value. Read more
1.0.0 · 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 Microphone
impl Debug for Microphone
Source§impl Default for Microphone
impl Default for Microphone
Source§fn default() -> Microphone
fn default() -> Microphone
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Microphone
impl<'de> Deserialize<'de> for Microphone
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Microphone
impl Serialize for Microphone
Auto Trait Implementations§
impl Freeze for Microphone
impl RefUnwindSafe for Microphone
impl Send for Microphone
impl Sync for Microphone
impl Unpin for Microphone
impl UnwindSafe for Microphone
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