pub enum UsageWatcher2Request {
OnStateChanged {
usage: Usage2,
state: UsageState,
responder: UsageWatcher2OnStateChangedResponder,
},
}
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 UsageWatcher2Request
impl UsageWatcher2Request
pub fn into_on_state_changed( self, ) -> Option<(Usage2, UsageState, UsageWatcher2OnStateChangedResponder)>
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 UsageWatcher2Request
impl !RefUnwindSafe for UsageWatcher2Request
impl Send for UsageWatcher2Request
impl Sync for UsageWatcher2Request
impl Unpin for UsageWatcher2Request
impl !UnwindSafe for UsageWatcher2Request
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