pub async fn is_mic_muted(&self) -> Result<Value, Error> {
        let audio_proxy = match connect_to_protocol::<AudioMarker>() {
            Ok(proxy) => proxy,
            Err(e) => bail!("Failed to connect to Setup Audio service {:?}.", e),
        };
        match audio_proxy.watch().await?.input {
            Some(audio_input) => Ok(to_value(audio_input.muted)?),
            _ => Err(format_err!("Cannot read audio input.")),
        }
    }
/// Reports the AudioInput (mic muted) state.
///
/// Returns true if mic is muted or false if mic is unmuted.
Reports the AudioInput (mic muted) state.
Returns true if mic is muted or false if mic is unmuted.
Reports the AudioInput ( mic muted ) state . Returns true if mic is muted or false if mic is unmuted .
pub async fn is_mic_muted(&self) -> Result<Value, Error> {
        let audio_proxy = match connect_to_protocol::<AudioMarker>() {
            Ok(proxy) => proxy,
            Err(e) => bail!("Failed to connect to Setup Audio service {:?}.", e),
        };
        match audio_proxy.watch().await?.input {
            Some(audio_input) => Ok(to_value(audio_input.muted)?),
            _ => Err(format_err!("Cannot read audio input.")),
        }
    }
pub async fn is_mic_muted ( & self ) -> Result < Value , Error > { let audio_proxy = match connect_to_protocol :: < AudioMarker > ( ) { Ok ( proxy ) => proxy , Err ( e ) => bail ! ( " " e ) , } ; match audio_proxy . watch ( ) . await ? . input { Some ( audio_input ) => Ok ( to_value ( audio_input . muted ) ? ) , _ => Err ( format_err ! ( " " ) ) , } }
Reports the AudioInput (mic muted) state.
Reports the AudioInput ( mic muted ) state .
&self
&self