pub enum BatteryInfoWatcherRequest {
OnChangeBatteryInfo {
info: BatteryInfo,
responder: BatteryInfoWatcherOnChangeBatteryInfoResponder,
},
}
Expand description
Watcher on battery info
Variants§
OnChangeBatteryInfo
Callback triggered when battery info changes
Implementations§
Source§impl BatteryInfoWatcherRequest
impl BatteryInfoWatcherRequest
pub fn into_on_change_battery_info( self, ) -> Option<(BatteryInfo, BatteryInfoWatcherOnChangeBatteryInfoResponder)>
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 BatteryInfoWatcherRequest
impl !RefUnwindSafe for BatteryInfoWatcherRequest
impl Send for BatteryInfoWatcherRequest
impl Sync for BatteryInfoWatcherRequest
impl Unpin for BatteryInfoWatcherRequest
impl !UnwindSafe for BatteryInfoWatcherRequest
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