Struct libusbk::DeviceHandle
source · [−]pub struct DeviceHandle { /* private fields */ }
Implementations
sourceimpl DeviceHandle
impl DeviceHandle
pub fn claim_interface(&mut self, num_or_index: u8, is_index: bool) -> Result<()>
pub fn driver_id(&self) -> DriverId
pub fn read_pipe(&mut self, pipe_id: u8, buffer: &mut [u8]) -> Result<u32>
pub fn write_pipe(&mut self, pipe_id: u8, buffer: &[u8]) -> Result<u32>
pub fn raw_handle(&self) -> NonNull<c_void>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DeviceHandle
impl !Sync for DeviceHandle
impl Unpin for DeviceHandle
impl UnwindSafe for DeviceHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more