#[repr(u8)]pub enum BatChargeLevel {
Ok = 0,
Warning = 1,
Critical = 2,
}Variants§
Ok = 0
Charge level is nominal
Warning = 1
Charge level is low, intervention may soon be required.
Critical = 2
Charge level is critical, immediate intervention is required
Implementations§
Trait Implementations§
Source§impl Clone for BatChargeLevel
impl Clone for BatChargeLevel
Source§fn clone(&self) -> BatChargeLevel
fn clone(&self) -> BatChargeLevel
Returns a duplicate 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 BatChargeLevel
impl Debug for BatChargeLevel
Source§impl<'de> Deserialize<'de> for BatChargeLevel
impl<'de> Deserialize<'de> for BatChargeLevel
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 From<BatChargeLevel> for u8
impl From<BatChargeLevel> for u8
Source§fn from(val: BatChargeLevel) -> Self
fn from(val: BatChargeLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatChargeLevel
impl PartialEq for BatChargeLevel
Source§impl Serialize for BatChargeLevel
impl Serialize for BatChargeLevel
impl Copy for BatChargeLevel
impl Eq for BatChargeLevel
impl StructuralPartialEq for BatChargeLevel
Auto Trait Implementations§
impl Freeze for BatChargeLevel
impl RefUnwindSafe for BatChargeLevel
impl Send for BatChargeLevel
impl Sync for BatChargeLevel
impl Unpin for BatChargeLevel
impl UnwindSafe for BatChargeLevel
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