pub enum UsageGainReporterRequest {
RegisterListener {
device_unique_id: String,
usage: Usage,
usage_gain_listener: ClientEnd<UsageGainListenerMarker>,
control_handle: UsageGainReporterControlHandle,
},
}
Expand description
A protocol for setting up watchers of usage gain.
Variants§
RegisterListener
Connects a listener to a stream of usage gain setting changes
for usage
on the device identified by device_token
. Usage
Gain is not set directly by any client; it is a translation of
the usage volume setting for each device, summed with active
muting/ducking gain adjustments.
Devices may map the same volume level to different dbfs, so
a device_unique_id
is needed to identify the device.
AudioDeviceEnumerator
provides programmatic access to devices
and their unique ids if it is necessary for a client to select
an id at runtime.
Fields
§
usage_gain_listener: ClientEnd<UsageGainListenerMarker>
§
control_handle: UsageGainReporterControlHandle
Implementations§
Source§impl UsageGainReporterRequest
impl UsageGainReporterRequest
pub fn into_register_listener( self, ) -> Option<(String, Usage, ClientEnd<UsageGainListenerMarker>, UsageGainReporterControlHandle)>
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 UsageGainReporterRequest
impl !RefUnwindSafe for UsageGainReporterRequest
impl Send for UsageGainReporterRequest
impl Sync for UsageGainReporterRequest
impl Unpin for UsageGainReporterRequest
impl !UnwindSafe for UsageGainReporterRequest
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