pub enum UsageWatcherRequest {
OnStateChanged {
usage: Usage,
state: UsageState,
responder: UsageWatcherOnStateChangedResponder,
},
}
Expand description
A protocol for listening to changes to the policy state of an audio usage.
User actions, such as lowering the volume or muting a stream, are not reflected in this API.
Variants§
OnStateChanged
Called on first connection and whenever the watched usage changes. The provided usage will always be the bound usage; it is provided so that an implementation of this protocol may be bound to more than one usage.
Clients must respond to acknowledge the event. Clients that do not acknowledge their events will eventually be disconnected.
Implementations§
Source§impl UsageWatcherRequest
impl UsageWatcherRequest
pub fn into_on_state_changed( self, ) -> Option<(Usage, UsageState, UsageWatcherOnStateChangedResponder)>
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 UsageWatcherRequest
impl !RefUnwindSafe for UsageWatcherRequest
impl Send for UsageWatcherRequest
impl Sync for UsageWatcherRequest
impl Unpin for UsageWatcherRequest
impl !UnwindSafe for UsageWatcherRequest
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