pub struct UsageGainListenerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl UsageGainListenerSynchronousProxy
impl UsageGainListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<UsageGainListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<UsageGainListenerEvent, 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 on_gain_mute_changed(
&self,
muted: bool,
gain_dbfs: f32,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn on_gain_mute_changed( &self, muted: bool, gain_dbfs: f32, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Called immediately on connection and afterward any time the usage gain setting changes.
Clients must respond to acknowledge the event. Clients that do not acknowledge their events will eventually be disconnected.
Note: This API does not have mute reporting implemented; muted
is always false.
Trait Implementations§
Source§impl SynchronousProxy for UsageGainListenerSynchronousProxy
impl SynchronousProxy for UsageGainListenerSynchronousProxy
Source§type Proxy = UsageGainListenerProxy
type Proxy = UsageGainListenerProxy
The async proxy for the same protocol.
Source§type Protocol = UsageGainListenerMarker
type Protocol = UsageGainListenerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for UsageGainListenerSynchronousProxy
impl RefUnwindSafe for UsageGainListenerSynchronousProxy
impl Send for UsageGainListenerSynchronousProxy
impl Sync for UsageGainListenerSynchronousProxy
impl Unpin for UsageGainListenerSynchronousProxy
impl UnwindSafe for UsageGainListenerSynchronousProxy
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