pub struct AudioSynchronousProxy { /* private fields */ }
Implementations§
Source§impl AudioSynchronousProxy
impl AudioSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<AudioEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<AudioEvent, 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 watch(
&self,
___deadline: MonotonicInstant,
) -> Result<AudioSettings, Error>
pub fn watch( &self, ___deadline: MonotonicInstant, ) -> Result<AudioSettings, Error>
Gets the current AudioSettings. Returns immediately on first call; subsequent calls return when the value changes.
If this call fails, it is considered a fatal error and the channel will be closed.
Sourcepub fn watch2(
&self,
___deadline: MonotonicInstant,
) -> Result<AudioSettings2, Error>
pub fn watch2( &self, ___deadline: MonotonicInstant, ) -> Result<AudioSettings2, Error>
Gets the current AudioSettings2. Returns immediately on first call; subsequent calls return when the value changes.
If this call fails, it is considered a fatal error and the channel will be closed.
Sourcepub fn set(
&self,
settings: &AudioSettings,
___deadline: MonotonicInstant,
) -> Result<AudioSetResult, Error>
pub fn set( &self, settings: &AudioSettings, ___deadline: MonotonicInstant, ) -> Result<AudioSetResult, Error>
Sets audio settings. Any field not explicitly set in the table performs a no-op, and will not make any changes.
Sourcepub fn set2(
&self,
settings: &AudioSettings2,
___deadline: MonotonicInstant,
) -> Result<AudioSet2Result, Error>
pub fn set2( &self, settings: &AudioSettings2, ___deadline: MonotonicInstant, ) -> Result<AudioSet2Result, Error>
Sets audio settings. Only table fields that are set will lead to any changes; otherwise existing settings are unchanged.
Trait Implementations§
Source§impl Debug for AudioSynchronousProxy
impl Debug for AudioSynchronousProxy
Source§impl SynchronousProxy for AudioSynchronousProxy
impl SynchronousProxy for AudioSynchronousProxy
Source§type Proxy = AudioProxy
type Proxy = AudioProxy
Source§type Protocol = AudioMarker
type Protocol = AudioMarker
Proxy
controls.