pub struct SmartBattery {Show 17 fields
pub useful_time: u16,
pub go_home_time: u16,
pub land_time: u16,
pub go_home_battery: u16,
pub land_battery: u16,
pub safe_fly_radius: f32,
pub volume_consume: f32,
pub status: u32,
pub go_home_status: BatteryGoHomeStatus,
pub go_home_countdown: u8,
pub voltage: f32,
pub percent: u8,
pub low_warning: u8,
pub low_warning_go_home: u8,
pub serious_low_warning: u8,
pub serious_low_warning_landing: u8,
pub reserve: u8,
}Fields§
§useful_time: u16§go_home_time: u16§land_time: u16§go_home_battery: u16§land_battery: u16§safe_fly_radius: f32§volume_consume: f32§status: u32§go_home_status: BatteryGoHomeStatus§go_home_countdown: u8§voltage: f32volts
percent: u8§low_warning: u8§low_warning_go_home: u8§serious_low_warning: u8§serious_low_warning_landing: u8§reserve: u8Trait Implementations§
Source§impl BinRead for SmartBattery
impl BinRead for SmartBattery
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Debug for SmartBattery
impl Debug for SmartBattery
Source§impl ReadEndian for SmartBattery
impl ReadEndian for SmartBattery
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for SmartBattery
impl RefUnwindSafe for SmartBattery
impl Send for SmartBattery
impl Sync for SmartBattery
impl Unpin for SmartBattery
impl UnwindSafe for SmartBattery
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