pub struct BatteryService { /* private fields */ }Expand description
A data service for broadcasting a battery’s remaining charge (as a percentage).
Conforms to Battery Level format as defined in GATT Specifications Supplement.
Implementations§
Source§impl BatteryService
impl BatteryService
Sourcepub fn new() -> Self
pub fn new() -> Self
Create an instance of BatteryService.
Trait Implementations§
Source§impl AsBuffer for BatteryService
impl AsBuffer for BatteryService
Source§impl Clone for BatteryService
impl Clone for BatteryService
Source§fn clone(&self) -> BatteryService
fn clone(&self) -> BatteryService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatteryService
impl Debug for BatteryService
Source§impl Default for BatteryService
impl Default for BatteryService
Source§impl ServiceData<u8> for BatteryService
impl ServiceData<u8> for BatteryService
impl Copy for BatteryService
Auto Trait Implementations§
impl Freeze for BatteryService
impl RefUnwindSafe for BatteryService
impl Send for BatteryService
impl Sync for BatteryService
impl Unpin for BatteryService
impl UnwindSafe for BatteryService
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