[−][src]Struct hid_io::device::HIDIOEndpoint
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]
socket: Box<dyn HIDIOTransport>,
max_packet_len: u32
) -> HIDIOEndpoint
pub fn recv_chunk(
&mut self,
buffer: &mut HIDIOPacketBuffer
) -> Result<usize, Error>
[src]
&mut self,
buffer: &mut HIDIOPacketBuffer
) -> Result<usize, Error>
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,