[][src]Struct gc_adapter::LibUsbAdapter

pub struct LibUsbAdapter<Context: UsbContext> { /* fields omitted */ }

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]

pub fn from_usb() -> Option<Self>[src]

Trait Implementations

impl<Context: UsbContext> AdapterHardware for LibUsbAdapter<Context>[src]

impl<Context: UsbContext> Drop for LibUsbAdapter<Context>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.