[][src]Trait hf2::mock::HidMockable

pub trait HidMockable {
    fn my_write(&self, data: &[u8]) -> HidResult<usize>;
fn my_read(&self, buf: &mut [u8]) -> HidResult<usize>; }

Required methods

fn my_write(&self, data: &[u8]) -> HidResult<usize>

fn my_read(&self, buf: &mut [u8]) -> HidResult<usize>

Loading content...

Implementations on Foreign Types

impl HidMockable for HidDevice[src]

Loading content...

Implementors

impl<R, W> HidMockable for MyMock<R, W> where
    R: Fn() -> Vec<u8>,
    W: Fn(&[u8]) -> usize
[src]

Loading content...