pub enum BatteryInfoProviderRequest {
GetBatteryInfo {
responder: BatteryInfoProviderGetBatteryInfoResponder,
},
Watch {
watcher: ClientEnd<BatteryInfoWatcherMarker>,
control_handle: BatteryInfoProviderControlHandle,
},
}
Expand description
Provider interface used to obtain battery status details
Variants§
GetBatteryInfo
Fields
§
responder: BatteryInfoProviderGetBatteryInfoResponder
Gets battery info
Watch
Fields
§
watcher: ClientEnd<BatteryInfoWatcherMarker>
§
control_handle: BatteryInfoProviderControlHandle
Registers a watcher for battery info changes
Implementations§
source§impl BatteryInfoProviderRequest
impl BatteryInfoProviderRequest
pub fn into_get_battery_info( self ) -> Option<BatteryInfoProviderGetBatteryInfoResponder>
pub fn into_watch( self ) -> Option<(ClientEnd<BatteryInfoWatcherMarker>, BatteryInfoProviderControlHandle)>
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 !RefUnwindSafe for BatteryInfoProviderRequest
impl Send for BatteryInfoProviderRequest
impl Sync for BatteryInfoProviderRequest
impl Unpin for BatteryInfoProviderRequest
impl !UnwindSafe for BatteryInfoProviderRequest
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