Trait usbapi::usb_transfer::BufferSlice[][src]

pub trait BufferSlice {
    fn buffer_from_raw<'a>(&self) -> &'a [u8];
}

Required methods

Loading content...

Implementors

impl BufferSlice for BulkTransfer[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]

Loading content...