[][src]Struct usbw::libusb::transfer::TransferWithBuf

pub struct TransferWithBuf<'a> { /* fields omitted */ }

Implementations

impl<'a> TransferWithBuf<'a>[src]

pub fn new(transfer: Transfer, transfer_buf: &'a mut [u8]) -> Self[src]

WARNING! The transfer_buf holds more than just the data to be read/sent

pub fn set_buf(&mut self, new_buf: &'a mut [u8]) -> &'a mut [u8][src]

Returns the old transfer_buf

pub fn buf_mut(&mut self) -> &mut [u8][src]

pub fn buf_ref(&self) -> &[u8][src]

pub fn transfer_ref(&self) -> &Transfer[src]

pub fn transfer_mut(&mut self) -> &mut Transfer[src]

pub fn control_data_ref(&self) -> &[u8][src]

pub fn control_data_mut(&mut self) -> &mut [u8][src]

pub fn set_control_setup(
    &mut self,
    handle: &DeviceHandle,
    control_setup: ControlSetup
)
[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for TransferWithBuf<'a>

impl<'a> !Send for TransferWithBuf<'a>

impl<'a> !Sync for TransferWithBuf<'a>

impl<'a> Unpin for TransferWithBuf<'a>

impl<'a> !UnwindSafe for TransferWithBuf<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.