#[repr(u8)]pub enum SupplyState {
Disabled = 0,
Chargingenabled = 1,
Dischargingenabled = 2,
Disablederror = 3,
Disableddiagnostics = 4,
Enabled = 5,
}Variants§
Disabled = 0
The EV is not currently allowed to charge or discharge
Chargingenabled = 1
The EV is currently allowed to charge
Dischargingenabled = 2
The EV is currently allowed to discharge
Disablederror = 3
The EV is not currently allowed to charge or discharge due to an error. The error must be cleared before operation can continue.
Disableddiagnostics = 4
The EV is not currently allowed to charge or discharge due to self-diagnostics mode.
Enabled = 5
The EV is currently allowed to charge and discharge
Implementations§
Trait Implementations§
Source§impl Clone for SupplyState
impl Clone for SupplyState
Source§fn clone(&self) -> SupplyState
fn clone(&self) -> SupplyState
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 SupplyState
impl Debug for SupplyState
Source§impl<'de> Deserialize<'de> for SupplyState
impl<'de> Deserialize<'de> for SupplyState
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<SupplyState> for u8
impl From<SupplyState> for u8
Source§fn from(val: SupplyState) -> Self
fn from(val: SupplyState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SupplyState
impl PartialEq for SupplyState
Source§impl Serialize for SupplyState
impl Serialize for SupplyState
impl Copy for SupplyState
impl Eq for SupplyState
impl StructuralPartialEq for SupplyState
Auto Trait Implementations§
impl Freeze for SupplyState
impl RefUnwindSafe for SupplyState
impl Send for SupplyState
impl Sync for SupplyState
impl Unpin for SupplyState
impl UnwindSafe for SupplyState
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