#[non_exhaustive]pub enum OperatingMode {
Continuous,
NonContinuous,
Unknown(u8),
}Expand description
Panel operating mode, decoded from Display Device Data Block (0x0C) byte 1 bits 3:0.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continuous
Continuous (free-running) refresh (0).
NonContinuous
Non-continuous (event-driven or line-at-a-time) refresh (1).
Unknown(u8)
Reserved or undefined value (2–15).
Implementations§
Source§impl OperatingMode
impl OperatingMode
Sourcepub fn from_nibble(nibble: u8) -> Self
pub fn from_nibble(nibble: u8) -> Self
Decodes the operating mode from the lower 4 bits of byte 1.
Trait Implementations§
Source§impl Clone for OperatingMode
impl Clone for OperatingMode
Source§fn clone(&self) -> OperatingMode
fn clone(&self) -> OperatingMode
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 OperatingMode
impl Debug for OperatingMode
Source§impl PartialEq for OperatingMode
impl PartialEq for OperatingMode
impl Copy for OperatingMode
impl Eq for OperatingMode
impl StructuralPartialEq for OperatingMode
Auto Trait Implementations§
impl Freeze for OperatingMode
impl RefUnwindSafe for OperatingMode
impl Send for OperatingMode
impl Sync for OperatingMode
impl Unpin for OperatingMode
impl UnsafeUnpin for OperatingMode
impl UnwindSafe for OperatingMode
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