#[repr(C)]pub struct ArchivedExtendedStatus{
pub current: <i16 as Archive>::Archived,
pub voltage_mv: <i16 as Archive>::Archived,
pub capacity_mah: <u16 as Archive>::Archived,
pub remaining_capacity_mah: <u16 as Archive>::Archived,
pub last_reported_fault: <Option<ChargeFault> as Archive>::Archived,
pub num_reported_faults: <u32 as Archive>::Archived,
}Expand description
An archived ExtendedStatus
Fields§
§current: <i16 as Archive>::ArchivedThe archived counterpart of ExtendedStatus::current
voltage_mv: <i16 as Archive>::ArchivedThe archived counterpart of ExtendedStatus::voltage_mv
capacity_mah: <u16 as Archive>::ArchivedThe archived counterpart of ExtendedStatus::capacity_mah
remaining_capacity_mah: <u16 as Archive>::ArchivedThe archived counterpart of ExtendedStatus::remaining_capacity_mah
last_reported_fault: <Option<ChargeFault> as Archive>::ArchivedThe archived counterpart of ExtendedStatus::last_reported_fault
num_reported_faults: <u32 as Archive>::ArchivedThe archived counterpart of ExtendedStatus::num_reported_faults
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedExtendedStatuswhere
i16: Archive,
u16: Archive,
Option<ChargeFault>: Archive,
u32: Archive,
<__C as Fallible>::Error: Trace,
<i16 as Archive>::Archived: CheckBytes<__C>,
<u16 as Archive>::Archived: CheckBytes<__C>,
<Option<ChargeFault> as Archive>::Archived: CheckBytes<__C>,
<u32 as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedExtendedStatuswhere
i16: Archive,
u16: Archive,
Option<ChargeFault>: Archive,
u32: Archive,
<__C as Fallible>::Error: Trace,
<i16 as Archive>::Archived: CheckBytes<__C>,
<u16 as Archive>::Archived: CheckBytes<__C>,
<Option<ChargeFault> as Archive>::Archived: CheckBytes<__C>,
<u32 as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedExtendedStatuswhere
i16: Archive,
u16: Archive,
Option<ChargeFault>: Archive,
u32: Archive,
<i16 as Archive>::Archived: Portable,
<u16 as Archive>::Archived: Portable,
<Option<ChargeFault> as Archive>::Archived: Portable,
<u32 as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedExtendedStatus
impl RefUnwindSafe for ArchivedExtendedStatus
impl Send for ArchivedExtendedStatus
impl Sync for ArchivedExtendedStatus
impl Unpin for ArchivedExtendedStatus
impl UnwindSafe for ArchivedExtendedStatus
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.