pub enum ProviderRequest {
WatchState {
listener: ClientEnd<ListenerMarker>,
control_handle: ProviderControlHandle,
},
}
Expand description
The Provider protocol offers a subscription interface through which clients can watch for changes in the system’s activity state.
Variants§
WatchState
Subscribe to changes in the system’s state. The server will always invoke listener.OnStateChanged at least once with the initial state, and after that invoke listener.OnStateChanged whenever the system’s state changes.
Implementations§
Source§impl ProviderRequest
impl ProviderRequest
pub fn into_watch_state( self, ) -> Option<(ClientEnd<ListenerMarker>, ProviderControlHandle)>
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 ProviderRequest
impl !RefUnwindSafe for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl !UnwindSafe for ProviderRequest
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