Struct web_sys::BatteryManager
source · #[repr(transparent)]pub struct BatteryManager { /* private fields */ }
Expand description
The BatteryManager
object
This API requires the following crate features to be activated: BatteryManager
Implementations§
source§impl BatteryManager
impl BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn charging_time(&self) -> f64
pub fn charging_time(&self) -> f64
The chargingTime
getter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn discharging_time(&self) -> f64
pub fn discharging_time(&self) -> f64
The dischargingTime
getter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn onchargingchange(&self) -> Option<Function>
pub fn onchargingchange(&self) -> Option<Function>
The onchargingchange
getter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn set_onchargingchange(&self, onchargingchange: Option<&Function>)
pub fn set_onchargingchange(&self, onchargingchange: Option<&Function>)
The onchargingchange
setter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn onchargingtimechange(&self) -> Option<Function>
pub fn onchargingtimechange(&self) -> Option<Function>
The onchargingtimechange
getter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn set_onchargingtimechange(&self, onchargingtimechange: Option<&Function>)
pub fn set_onchargingtimechange(&self, onchargingtimechange: Option<&Function>)
The onchargingtimechange
setter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn ondischargingtimechange(&self) -> Option<Function>
pub fn ondischargingtimechange(&self) -> Option<Function>
The ondischargingtimechange
getter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn set_ondischargingtimechange(
&self,
ondischargingtimechange: Option<&Function>
)
pub fn set_ondischargingtimechange(
&self,
ondischargingtimechange: Option<&Function>
)
The ondischargingtimechange
setter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn onlevelchange(&self) -> Option<Function>
pub fn onlevelchange(&self) -> Option<Function>
The onlevelchange
getter
This API requires the following crate features to be activated: BatteryManager
source§impl BatteryManager
impl BatteryManager
sourcepub fn set_onlevelchange(&self, onlevelchange: Option<&Function>)
pub fn set_onlevelchange(&self, onlevelchange: Option<&Function>)
The onlevelchange
setter
This API requires the following crate features to be activated: BatteryManager
Trait Implementations§
source§impl AsRef<EventTarget> for BatteryManager
impl AsRef<EventTarget> for BatteryManager
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for BatteryManager
impl AsRef<JsValue> for BatteryManager
source§impl AsRef<Object> for BatteryManager
impl AsRef<Object> for BatteryManager
source§impl Clone for BatteryManager
impl Clone for BatteryManager
source§fn clone(&self) -> BatteryManager
fn clone(&self) -> BatteryManager
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatteryManager
impl Debug for BatteryManager
source§impl From<BatteryManager> for EventTarget
impl From<BatteryManager> for EventTarget
source§fn from(obj: BatteryManager) -> EventTarget
fn from(obj: BatteryManager) -> EventTarget
source§impl From<BatteryManager> for JsValue
impl From<BatteryManager> for JsValue
source§fn from(obj: BatteryManager) -> JsValue
fn from(obj: BatteryManager) -> JsValue
source§impl From<BatteryManager> for Object
impl From<BatteryManager> for Object
source§fn from(obj: BatteryManager) -> Object
fn from(obj: BatteryManager) -> Object
source§impl From<JsValue> for BatteryManager
impl From<JsValue> for BatteryManager
source§fn from(obj: JsValue) -> BatteryManager
fn from(obj: JsValue) -> BatteryManager
source§impl FromWasmAbi for BatteryManager
impl FromWasmAbi for BatteryManager
source§impl<'a> IntoWasmAbi for &'a BatteryManager
impl<'a> IntoWasmAbi for &'a BatteryManager
source§impl IntoWasmAbi for BatteryManager
impl IntoWasmAbi for BatteryManager
source§impl JsCast for BatteryManager
impl JsCast for BatteryManager
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for BatteryManager
impl OptionFromWasmAbi for BatteryManager
source§impl<'a> OptionIntoWasmAbi for &'a BatteryManager
impl<'a> OptionIntoWasmAbi for &'a BatteryManager
source§impl OptionIntoWasmAbi for BatteryManager
impl OptionIntoWasmAbi for BatteryManager
source§impl RefFromWasmAbi for BatteryManager
impl RefFromWasmAbi for BatteryManager
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<BatteryManager>
type Anchor = ManuallyDrop<BatteryManager>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BatteryManager
impl !Send for BatteryManager
impl !Sync for BatteryManager
impl Unpin for BatteryManager
impl UnwindSafe for BatteryManager
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more