[−][src]Struct usbw::libusb::transfer::TransferWithBuf
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]
&mut self,
handle: &DeviceHandle,
control_setup: ControlSetup
)
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,