pub struct Frame {
pub width: usize,
pub height: usize,
pub pixels: Vec<u8>,
pub annunciators: AnnunciatorFlags,
pub contrast: u8,
pub contrast_range: [u8; 2],
pub contrast_default: u8,
}Expand description
The frame event (web/protocol.md): the display, sent when it
changed. Serializes as {"type":"frame","width","height","pixels", "annunciators","contrast","contrastRange","contrastDefault"}.
Fields§
§width: usizePixels per row: 131.
height: usizeRows: 64, or 16 on the 42S.
pixels: Vec<u8>The pixels packed one bit each (pack_bits); base64 in JSON.
annunciators: AnnunciatorFlagsThe annunciators.
contrast: u8Raw 5-bit contrast, 0-31, higher is darker.
contrast_range: [u8; 2]The model’s usable contrast range, [low, high].
contrast_default: u8The contrast the ROM sets at power-on.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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