Enum PowerState
pub enum PowerState {
Awake,
AwakeCanBusSilent,
Sleep,
}Expand description
Power state of the TCU.
Variants§
Awake
TCU is fully awake.
AwakeCanBusSilent
TCU is awake but CAN bus must be silent.
Sleep
TCU is in low power mode.
Trait Implementations§
§impl Clone for PowerState
impl Clone for PowerState
§fn clone(&self) -> PowerState
fn clone(&self) -> PowerState
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 more§impl Debug for PowerState
impl Debug for PowerState
§impl<'de> Deserialize<'de> for PowerState
impl<'de> Deserialize<'de> for PowerState
§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
§impl PartialEq for PowerState
impl PartialEq for PowerState
§impl Serialize for PowerState
impl Serialize for PowerState
impl Copy for PowerState
impl Eq for PowerState
impl StructuralPartialEq for PowerState
Auto Trait Implementations§
impl Freeze for PowerState
impl RefUnwindSafe for PowerState
impl Send for PowerState
impl Sync for PowerState
impl Unpin for PowerState
impl UnwindSafe for PowerState
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