pub struct LibUsbAdapter<Context: UsbContext> { /* private fields */ }
Expand description
Adapter interface for libusb to provide USB access for the gamecube adapter.
The suggested interface for using this is GcAdapter::from_usb
. This
should only be used if you want to provide your own rusb::UsbContext
Implementations§
Source§impl<Context: UsbContext> LibUsbAdapter<Context>
impl<Context: UsbContext> LibUsbAdapter<Context>
pub fn from_usb_context(context: Context) -> Option<Self>
pub fn from_handle(handle: DeviceHandle<Context>) -> Self
Trait Implementations§
Source§impl<Context: UsbContext> AdapterHardware for LibUsbAdapter<Context>
impl<Context: UsbContext> AdapterHardware for LibUsbAdapter<Context>
fn read_interrupt(&mut self, data: &mut [u8])
fn write_interrupt(&mut self, data: &[u8])
Source§impl<Context: UsbContext> Drop for LibUsbAdapter<Context>
impl<Context: UsbContext> Drop for LibUsbAdapter<Context>
Auto Trait Implementations§
impl<Context> Freeze for LibUsbAdapter<Context>where
Context: Freeze,
impl<Context> RefUnwindSafe for LibUsbAdapter<Context>where
Context: RefUnwindSafe,
impl<Context> Send for LibUsbAdapter<Context>
impl<Context> Sync for LibUsbAdapter<Context>
impl<Context> Unpin for LibUsbAdapter<Context>where
Context: Unpin,
impl<Context> UnwindSafe for LibUsbAdapter<Context>where
Context: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more