pub enum ListenerRequest {
OnStateChanged {
state: State,
transition_time: i64,
responder: ListenerOnStateChangedResponder,
},
}
Expand description
The Listener protocol subscribes to changes in the system’s activity state. Clients which care about the activity state of the system are expected to implement this protocol and subscribe via Provider.WatchState.
Variants§
OnStateChanged
Callback that is invoked whenever the system state changes. The Listener is expected to acknowledge each call explicitly and will not receive new state until this acknowledgement is done.
Implementations§
Source§impl ListenerRequest
impl ListenerRequest
pub fn into_on_state_changed( self, ) -> Option<(State, i64, ListenerOnStateChangedResponder)>
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 ListenerRequest
impl !RefUnwindSafe for ListenerRequest
impl Send for ListenerRequest
impl Sync for ListenerRequest
impl Unpin for ListenerRequest
impl !UnwindSafe for ListenerRequest
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