#[repr(u8)]pub enum ArchivedChargeFault {
Normal = 0,
VbusOvp = 1,
SleepMode = 2,
BadAdaptor = 3,
OutputOvp = 4,
ThermalShutdown = 5,
TimerFault = 6,
NoBattery = 7,
}Expand description
An archived ChargeFault
Variants§
Normal = 0
The archived counterpart of ChargeFault::Normal
VbusOvp = 1
The archived counterpart of ChargeFault::VbusOvp
SleepMode = 2
The archived counterpart of ChargeFault::SleepMode
BadAdaptor = 3
The archived counterpart of ChargeFault::BadAdaptor
OutputOvp = 4
The archived counterpart of ChargeFault::OutputOvp
ThermalShutdown = 5
The archived counterpart of ChargeFault::ThermalShutdown
TimerFault = 6
The archived counterpart of ChargeFault::TimerFault
NoBattery = 7
The archived counterpart of ChargeFault::NoBattery
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedChargeFaultwhere
<__C as Fallible>::Error: Source,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedChargeFaultwhere
<__C as Fallible>::Error: Source,
impl Portable for ArchivedChargeFault
Auto Trait Implementations§
impl Freeze for ArchivedChargeFault
impl RefUnwindSafe for ArchivedChargeFault
impl Send for ArchivedChargeFault
impl Sync for ArchivedChargeFault
impl Unpin for ArchivedChargeFault
impl UnwindSafe for ArchivedChargeFault
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.