pub enum BatteryManagerRequest {
GetBatteryInfo {
responder: BatteryManagerGetBatteryInfoResponder,
},
Watch {
watcher: ClientEnd<BatteryInfoWatcherMarker>,
control_handle: BatteryManagerControlHandle,
},
}
Expand description
General manager interface for battery management
Variants§
GetBatteryInfo
Gets battery info
Fields
§
responder: BatteryManagerGetBatteryInfoResponder
Watch
Registers a watcher for battery info changes
Implementations§
Source§impl BatteryManagerRequest
impl BatteryManagerRequest
pub fn into_get_battery_info( self, ) -> Option<BatteryManagerGetBatteryInfoResponder>
pub fn into_watch( self, ) -> Option<(ClientEnd<BatteryInfoWatcherMarker>, BatteryManagerControlHandle)>
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 BatteryManagerRequest
impl !RefUnwindSafe for BatteryManagerRequest
impl Send for BatteryManagerRequest
impl Sync for BatteryManagerRequest
impl Unpin for BatteryManagerRequest
impl !UnwindSafe for BatteryManagerRequest
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