Struct blink1::Blink1Device
source · pub struct Blink1Device { /* private fields */ }
Implementations
sourceimpl Blink1Device
impl Blink1Device
pub fn open_first() -> Result<Blink1Device, HidError>
pub fn open(serial: &str) -> Result<Blink1Device, HidError>
pub fn get_serials() -> Result<Vec<String>, HidError>
pub fn fade_off(&self, index: u8) -> HidResult<()>
pub fn fade_to_rgb(&self, index: u8, r: u8, g: u8, b: u8) -> HidResult<()>
Auto Trait Implementations
impl RefUnwindSafe for Blink1Device
impl !Send for Blink1Device
impl !Sync for Blink1Device
impl Unpin for Blink1Device
impl UnwindSafe for Blink1Device
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more