Struct usbapi::os::linux::usbfs::UsbFsUrb [−][src]
Fields
status: i32
buffer: *mut u8
buffer_length: i32
actual_length: i32
Implementations
impl UsbFsUrb
[src]
pub fn new(typ: u8, ep: u8, ptr: *mut u8, length: usize) -> Self
[src]
pub fn control_data_as_ref<'a>(&self) -> &'a [u8]
[src]
Trait Implementations
impl Debug for UsbFsUrb
[src]
impl Display for UsbFsUrb
[src]
impl Drop for UsbFsUrb
[src]
impl UsbCoreTransfer<UsbFsUrb> for UsbFs
[src]
fn new_bulk(&mut self, ep: u8, size: usize) -> Result<UsbFsUrb>
[src]
fn new_interrupt(&mut self, ep: u8, size: usize) -> Result<UsbFsUrb>
[src]
fn new_isochronous(&mut self, ep: u8, size: usize) -> Result<UsbFsUrb>
[src]
fn new_control(&mut self, ep: u8, ctl: ControlTransfer) -> Result<UsbFsUrb>
[src]
impl UsbTransfer<UsbFsUrb> for UsbFsUrb
[src]
fn buffer_from_raw_mut<'a>(&self) -> &'a mut [u8]
[src]
fn buffer_from_raw<'a>(&self) -> &'a [u8]
[src]
Auto Trait Implementations
impl RefUnwindSafe for UsbFsUrb
impl !Send for UsbFsUrb
impl !Sync for UsbFsUrb
impl Unpin for UsbFsUrb
impl UnwindSafe for UsbFsUrb
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,