pub struct Colorlight;Expand description
The Colorlight receiving-card protocol: the free functions of this crate
behind Protocol.
Trait Implementations§
Source§impl Clone for Colorlight
impl Clone for Colorlight
Source§fn clone(&self) -> Colorlight
fn clone(&self) -> Colorlight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Colorlight
Source§impl Debug for Colorlight
impl Debug for Colorlight
Source§impl Default for Colorlight
impl Default for Colorlight
Source§fn default() -> Colorlight
fn default() -> Colorlight
Returns the “default value” for a type. Read more
Source§impl Protocol for Colorlight
impl Protocol for Colorlight
Source§fn discovery_reply(&self, frame: &[u8]) -> Option<DiscoveryInfo>
fn discovery_reply(&self, frame: &[u8]) -> Option<DiscoveryInfo>
The card a discovery reply describes, if
frame is one.Source§fn row(
&self,
buf: &mut Vec<u8>,
row: u16,
x: u16,
rgb: &[[u8; 3]],
order: ColorOrder,
)
fn row( &self, buf: &mut Vec<u8>, row: u16, x: u16, rgb: &[[u8; 3]], order: ColorOrder, )
One row packet into
buf: screen row row, pixels from x.Source§fn latch(&self, brightness: u8) -> Vec<u8> ⓘ
fn latch(&self, brightness: u8) -> Vec<u8> ⓘ
The latch frame that applies the rows sent since the last one.
Source§fn flash_read(&self, index: u16, page: u16) -> Vec<u8> ⓘ
fn flash_read(&self, index: u16, page: u16) -> Vec<u8> ⓘ
Read one chunk of flash at a 256-byte page index.
Source§fn flash_reply<'a>(&self, frame: &'a [u8]) -> Option<&'a [u8]>
fn flash_reply<'a>(&self, frame: &'a [u8]) -> Option<&'a [u8]>
The flash bytes a reply carries, if
frame is a flash reply.Auto Trait Implementations§
impl Freeze for Colorlight
impl RefUnwindSafe for Colorlight
impl Send for Colorlight
impl Sync for Colorlight
impl Unpin for Colorlight
impl UnsafeUnpin for Colorlight
impl UnwindSafe for Colorlight
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