pub struct Controller { /* private fields */ }
Implementations§
Source§impl Controller
impl Controller
pub fn new_with_timeout(timeout: Duration) -> Result<Self>
pub fn new() -> Result<Self>
pub fn set_solid(&self, rgb: [u8; 3]) -> Result<()>
pub fn set_breathe(&self, rgb: [u8; 3], rate: u16, brightness: u8) -> Result<()>
pub fn set_cycle(&self, rate: u16, brightness: u8) -> Result<()>
pub fn set_triple(&self, colors: [[u8; 3]; 3]) -> Result<()>
pub fn set_wave( &self, rate: u16, brightness: u8, direction: Direction, ) -> Result<()>
pub fn set_blend(&self, rate: u16, brightness: u8) -> Result<()>
pub fn command(&self, data: &[u8], disable_ls_memory: bool) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Controller
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
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