[−][src]Struct gc_adapter::LibUsbAdapter
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
impl<Context: UsbContext> LibUsbAdapter<Context>
[src]
pub fn from_usb_context(context: Context) -> Option<Self>
[src]
pub fn from_handle(handle: DeviceHandle<Context>) -> Self
[src]
impl LibUsbAdapter<GlobalContext>
[src]
Trait Implementations
impl<Context: UsbContext> AdapterHardware for LibUsbAdapter<Context>
[src]
pub fn read_interrupt(&mut self, data: &mut [u8])
[src]
pub fn write_interrupt(&mut self, data: &[u8])
[src]
impl<Context: UsbContext> Drop for LibUsbAdapter<Context>
[src]
Auto Trait Implementations
impl<Context> RefUnwindSafe for LibUsbAdapter<Context> where
Context: RefUnwindSafe,
Context: RefUnwindSafe,
impl<Context> Send for LibUsbAdapter<Context>
impl<Context> Sync for LibUsbAdapter<Context>
impl<Context> Unpin for LibUsbAdapter<Context> where
Context: Unpin,
Context: Unpin,
impl<Context> UnwindSafe for LibUsbAdapter<Context> where
Context: UnwindSafe,
Context: UnwindSafe,
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>,