pub enum BatterySense {
Connected,
PositiveOpen,
NegativeOpen,
BothOpen,
}
Expand description
Battery sense status
Variants§
Connected
SPSN remote sense line is connected.
PositiveOpen
SP remote sense line detected as opened.
NegativeOpen
SN remote sense line detected as opened.
BothOpen
SP and SN remote sense lines are both detected as opened.
Trait Implementations§
Source§impl Clone for BatterySense
impl Clone for BatterySense
Source§fn clone(&self) -> BatterySense
fn clone(&self) -> BatterySense
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 BatterySense
impl Debug for BatterySense
Source§impl Hash for BatterySense
impl Hash for BatterySense
Source§impl Ord for BatterySense
impl Ord for BatterySense
Source§fn cmp(&self, other: &BatterySense) -> Ordering
fn cmp(&self, other: &BatterySense) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BatterySense
impl PartialEq for BatterySense
Source§impl PartialOrd for BatterySense
impl PartialOrd for BatterySense
Source§impl Specifier for BatterySense
impl Specifier for BatterySense
Source§type InOut = BatterySense
type InOut = BatterySense
The interface type of the specifier. Read more
Source§fn into_bytes(input: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
fn into_bytes(input: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
Converts some bytes into the in-out type. Read more
Source§fn from_bytes(
bytes: Self::Bytes,
) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
fn from_bytes( bytes: Self::Bytes, ) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
Converts the given bytes into the in-out type. Read more
impl Copy for BatterySense
impl Eq for BatterySense
impl StructuralPartialEq for BatterySense
Auto Trait Implementations§
impl Freeze for BatterySense
impl RefUnwindSafe for BatterySense
impl Send for BatterySense
impl Sync for BatterySense
impl Unpin for BatterySense
impl UnwindSafe for BatterySense
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