Struct rclrust_msg::sensor_msgs::msg::BatteryState
source · [−]pub struct BatteryState {Show 16 fields
pub header: Header,
pub voltage: f32,
pub temperature: f32,
pub current: f32,
pub charge: f32,
pub capacity: f32,
pub design_capacity: f32,
pub percentage: f32,
pub power_supply_status: u8,
pub power_supply_health: u8,
pub power_supply_technology: u8,
pub present: bool,
pub cell_voltage: Vec<f32>,
pub cell_temperature: Vec<f32>,
pub location: String,
pub serial_number: String,
}
Fields
header: Header
voltage: f32
temperature: f32
current: f32
charge: f32
capacity: f32
design_capacity: f32
percentage: f32
power_supply_status: u8
power_supply_health: u8
power_supply_technology: u8
present: bool
cell_voltage: Vec<f32>
cell_temperature: Vec<f32>
location: String
serial_number: String
Implementations
sourceimpl BatteryState
impl BatteryState
pub const POWER_SUPPLY_STATUS_UNKNOWN: u8 = 0u8
pub const POWER_SUPPLY_STATUS_CHARGING: u8 = 1u8
pub const POWER_SUPPLY_STATUS_DISCHARGING: u8 = 2u8
pub const POWER_SUPPLY_STATUS_NOT_CHARGING: u8 = 3u8
pub const POWER_SUPPLY_STATUS_FULL: u8 = 4u8
pub const POWER_SUPPLY_HEALTH_UNKNOWN: u8 = 0u8
pub const POWER_SUPPLY_HEALTH_GOOD: u8 = 1u8
pub const POWER_SUPPLY_HEALTH_OVERHEAT: u8 = 2u8
pub const POWER_SUPPLY_HEALTH_DEAD: u8 = 3u8
pub const POWER_SUPPLY_HEALTH_OVERVOLTAGE: u8 = 4u8
pub const POWER_SUPPLY_HEALTH_UNSPEC_FAILURE: u8 = 5u8
pub const POWER_SUPPLY_HEALTH_COLD: u8 = 6u8
pub const POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE: u8 = 7u8
pub const POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE: u8 = 8u8
pub const POWER_SUPPLY_TECHNOLOGY_UNKNOWN: u8 = 0u8
pub const POWER_SUPPLY_TECHNOLOGY_NIMH: u8 = 1u8
pub const POWER_SUPPLY_TECHNOLOGY_LION: u8 = 2u8
pub const POWER_SUPPLY_TECHNOLOGY_LIPO: u8 = 3u8
pub const POWER_SUPPLY_TECHNOLOGY_LIFE: u8 = 4u8
pub const POWER_SUPPLY_TECHNOLOGY_NICD: u8 = 5u8
pub const POWER_SUPPLY_TECHNOLOGY_LIMN: u8 = 6u8
Trait Implementations
sourceimpl Clone for BatteryState
impl Clone for BatteryState
sourcefn clone(&self) -> BatteryState
fn clone(&self) -> BatteryState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BatteryState
impl Debug for BatteryState
sourceimpl Default for BatteryState
impl Default for BatteryState
sourceimpl InternalDefault for BatteryState
impl InternalDefault for BatteryState
sourceimpl MessageT for BatteryState
impl MessageT for BatteryState
type Raw = BatteryState_Raw
type RawRef = BatteryState_RawRef
fn type_support() -> *const c_void
unsafe fn from_raw(from: &Self::Raw) -> Self
unsafe fn to_raw_ref(&self) -> Self::RawRef
sourceimpl PartialEq<BatteryState> for BatteryState
impl PartialEq<BatteryState> for BatteryState
sourcefn eq(&self, other: &BatteryState) -> bool
fn eq(&self, other: &BatteryState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BatteryState) -> bool
fn ne(&self, other: &BatteryState) -> bool
This method tests for !=
.
impl StructuralPartialEq for BatteryState
Auto Trait Implementations
impl RefUnwindSafe for BatteryState
impl Send for BatteryState
impl Sync for BatteryState
impl Unpin for BatteryState
impl UnwindSafe for BatteryState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more