[][src]Struct hid_io::device::HIDIOEndpoint

pub struct HIDIOEndpoint { /* fields omitted */ }

A raw transport plus any associated metadata

Contains helpers to encode/decode HIDIO packets

Methods

impl HIDIOEndpoint[src]

pub fn new(
    socket: Box<dyn HIDIOTransport>,
    max_packet_len: u32
) -> HIDIOEndpoint
[src]

pub fn recv_chunk(
    &mut self,
    buffer: &mut HIDIOPacketBuffer
) -> Result<usize, Error>
[src]

pub fn create_buffer(&self) -> HIDIOPacketBuffer[src]

pub fn recv_packet(&mut self) -> HIDIOPacketBuffer[src]

pub fn send_packet(&mut self, packet: HIDIOPacketBuffer) -> Result<(), Error>[src]

pub fn send_sync(&mut self)[src]

pub fn send_ack(&mut self, _id: u32, data: Vec<u8>)[src]

Auto Trait Implementations

impl !Send for HIDIOEndpoint

impl !Sync for HIDIOEndpoint

impl Unpin for HIDIOEndpoint

impl !UnwindSafe for HIDIOEndpoint

impl !RefUnwindSafe for HIDIOEndpoint

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]