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
Gets battery info
Fields
§
responder: BatteryInfoProviderGetBatteryInfoResponder
Watch
Registers a watcher for battery info changes
Fields
§
watcher: ClientEnd<BatteryInfoWatcherMarker>
§
control_handle: BatteryInfoProviderControlHandle
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 Freeze for BatteryInfoProviderRequest
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