Trait usbapi::usb_transfer::BufferSlice [−][src]
pub trait BufferSlice { fn buffer_from_raw<'a>(&self) -> &'a [u8]; }
Required methods
fn buffer_from_raw<'a>(&self) -> &'a [u8]
[src]
Implementors
impl BufferSlice for BulkTransfer
[src]
impl BufferSlice for BulkTransfer
[src]fn buffer_from_raw<'a>(&self) -> &'a [u8]
[src]
fn buffer_from_raw<'a>(&self) -> &'a [u8]
[src]return buffer slice from raw pointer panic in case actual_length or buffer_capacity is incorrect Should not happen but if it does we should fix the broken code. return empty slice if length is 0
impl BufferSlice for ControlTransfer
[src]
impl BufferSlice for ControlTransfer
[src]