pub struct HeadsetGainSynchronousProxy { /* private fields */ }
Implementations§
Source§impl HeadsetGainSynchronousProxy
impl HeadsetGainSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<HeadsetGainEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<HeadsetGainEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn set_speaker_gain(&self, requested: u8) -> Result<(), Error>
pub fn set_speaker_gain(&self, requested: u8) -> Result<(), Error>
Make a request to the headset to set the speaker gain to requested
.
requested
must be in the range [0-15] inclusive. Any values outside of
this range will result in the channel closing with a
ZX_ERR_INVALID_ARGUMENT
epitaph.
Sourcepub fn watch_speaker_gain(
&self,
___deadline: MonotonicInstant,
) -> Result<u8, Error>
pub fn watch_speaker_gain( &self, ___deadline: MonotonicInstant, ) -> Result<u8, Error>
Hanging get to watch for updates to the headset speaker gain. Responses represent the current gain value that is set.
The returned gain
value will always be in the range [0-15] inclusive.
Sourcepub fn set_microphone_gain(&self, requested: u8) -> Result<(), Error>
pub fn set_microphone_gain(&self, requested: u8) -> Result<(), Error>
Make a request to the Headset to set the microphone gain to requested
.
requested
must be in the range [0-15] inclusive. Any values outside of
this range will result in the channel closing with a
ZX_ERR_INVALID_ARGUMENT
epitaph.
Sourcepub fn watch_microphone_gain(
&self,
___deadline: MonotonicInstant,
) -> Result<u8, Error>
pub fn watch_microphone_gain( &self, ___deadline: MonotonicInstant, ) -> Result<u8, Error>
Hanging get to watch for updates to the headset microphone gain. Responses represent the current gain value that is set.
The returned gain
value will always be in the range [0-15] inclusive.
Trait Implementations§
Source§impl Debug for HeadsetGainSynchronousProxy
impl Debug for HeadsetGainSynchronousProxy
Source§impl SynchronousProxy for HeadsetGainSynchronousProxy
impl SynchronousProxy for HeadsetGainSynchronousProxy
Source§type Proxy = HeadsetGainProxy
type Proxy = HeadsetGainProxy
Source§type Protocol = HeadsetGainMarker
type Protocol = HeadsetGainMarker
Proxy
controls.