pub struct Status {
pub source_status: Option<Status>,
pub charge_status: Option<ChargeStatus>,
pub level_percent: Option<f32>,
pub remaining_capacity_uah: Option<u32>,
pub full_charge_capacity_uah: Option<u32>,
pub health: Option<HealthStatus>,
pub temperature_mc: Option<i32>,
pub cycle_count: Option<u32>,
pub time_remaining: Option<i64>,
/* private fields */
}Expand description
Dynamic status of the battery pack telemetry.
Fields§
§source_status: Option<Status>Base status from the underlying power source.
charge_status: Option<ChargeStatus>High-level charging status.
level_percent: Option<f32>Battery level percentage (0.0 to 100.0).
remaining_capacity_uah: Option<u32>Remaining capacity in microamp-hours.
full_charge_capacity_uah: Option<u32>Full charge capacity in microamp-hours.
health: Option<HealthStatus>Battery health status.
temperature_mc: Option<i32>Temperature in milli-Celsius.
cycle_count: Option<u32>Number of charge cycles.
time_remaining: Option<i64>Estimated time remaining until empty or full.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Status, D> for Status
impl<D: ResourceDialect> Decode<Status, D> for Status
Source§impl TypeMarker for Status
impl TypeMarker for Status
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for Status
impl ValueTypeMarker for Status
impl Persistable for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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