pub enum UsageGainListenerRequest {
OnGainMuteChanged {
muted: bool,
gain_dbfs: f32,
responder: UsageGainListenerOnGainMuteChangedResponder,
},
}
Expand description
A protocol for watching changes to usage gain settings.
The channel will close when the device is not present.
Variants§
OnGainMuteChanged
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.
Implementations§
Source§impl UsageGainListenerRequest
impl UsageGainListenerRequest
pub fn into_on_gain_mute_changed( self, ) -> Option<(bool, f32, UsageGainListenerOnGainMuteChangedResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsageGainListenerRequest
impl !RefUnwindSafe for UsageGainListenerRequest
impl Send for UsageGainListenerRequest
impl Sync for UsageGainListenerRequest
impl Unpin for UsageGainListenerRequest
impl !UnwindSafe for UsageGainListenerRequest
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