Struct mavlink::uavionix::SMART_BATTERY_INFO_DATA
source · pub struct SMART_BATTERY_INFO_DATA {
pub capacity_full_specification: i32,
pub capacity_full: i32,
pub cycle_count: u16,
pub weight: u16,
pub discharge_minimum_voltage: u16,
pub charging_minimum_voltage: u16,
pub resting_minimum_voltage: u16,
pub id: u8,
pub battery_function: MavBatteryFunction,
pub mavtype: MavBatteryType,
pub serial_number: [u8; 16],
pub device_name: [u8; 50],
}
Fields§
§capacity_full_specification: i32
§capacity_full: i32
§cycle_count: u16
§weight: u16
§discharge_minimum_voltage: u16
§charging_minimum_voltage: u16
§resting_minimum_voltage: u16
§id: u8
§battery_function: MavBatteryFunction
§mavtype: MavBatteryType
§serial_number: [u8; 16]
§device_name: [u8; 50]
Implementations§
source§impl SMART_BATTERY_INFO_DATA
impl SMART_BATTERY_INFO_DATA
pub const ENCODED_LEN: usize = 87usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for SMART_BATTERY_INFO_DATA
impl Clone for SMART_BATTERY_INFO_DATA
source§fn clone(&self) -> SMART_BATTERY_INFO_DATA
fn clone(&self) -> SMART_BATTERY_INFO_DATA
Returns a copy 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 SMART_BATTERY_INFO_DATA
impl Debug for SMART_BATTERY_INFO_DATA
source§impl Default for SMART_BATTERY_INFO_DATA
impl Default for SMART_BATTERY_INFO_DATA
source§impl<'de> Deserialize<'de> for SMART_BATTERY_INFO_DATA
impl<'de> Deserialize<'de> for SMART_BATTERY_INFO_DATA
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageData for SMART_BATTERY_INFO_DATA
impl MessageData for SMART_BATTERY_INFO_DATA
type Message = MavMessage
const ID: u32 = 370u32
const NAME: &'static str = "SMART_BATTERY_INFO"
const EXTRA_CRC: u8 = 75u8
const ENCODED_LEN: usize = 87usize
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for SMART_BATTERY_INFO_DATA
impl PartialEq for SMART_BATTERY_INFO_DATA
source§fn eq(&self, other: &SMART_BATTERY_INFO_DATA) -> bool
fn eq(&self, other: &SMART_BATTERY_INFO_DATA) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SMART_BATTERY_INFO_DATA
impl Serialize for SMART_BATTERY_INFO_DATA
impl StructuralPartialEq for SMART_BATTERY_INFO_DATA
Auto Trait Implementations§
impl Freeze for SMART_BATTERY_INFO_DATA
impl RefUnwindSafe for SMART_BATTERY_INFO_DATA
impl Send for SMART_BATTERY_INFO_DATA
impl Sync for SMART_BATTERY_INFO_DATA
impl Unpin for SMART_BATTERY_INFO_DATA
impl UnwindSafe for SMART_BATTERY_INFO_DATA
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)