[][src]Struct joycon_rs::joycon::JoyConDevice

pub struct JoyConDevice { /* fields omitted */ }

Methods

impl JoyConDevice[src]

pub const VENDOR_ID: u16[src]

pub const PRODUCT_ID_JOYCON_L: u16[src]

pub const PRODUCT_ID_JOYCON_R: u16[src]

pub const PRODUCT_ID_PROCON: u16[src]

pub fn check_type_of_device(
    device_info: &DeviceInfo
) -> JoyConResult<JoyConDeviceType>
[src]

pub fn is_connected(&self) -> bool[src]

pub fn serial_number(&self) -> &str[src]

pub fn device_type(&self) -> JoyConDeviceType[src]

pub fn reset_device(&mut self, hid_device: HidDevice)[src]

pub fn forget_device(&mut self)[src]

pub fn new(device_info: &DeviceInfo, hidapi: &HidApi) -> JoyConResult<Self>[src]

pub fn write(&self, data: &[u8]) -> JoyConResult<usize>[src]

pub fn read(&self, buf: &mut [u8]) -> JoyConResult<usize>[src]

Trait Implementations

impl Debug for JoyConDevice[src]

impl<'a> TryInto<&'a HidDevice> for &'a JoyConDevice[src]

type Error = JoyConError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.