Skip to main content

UsbFunctionInterfaceProxyInterface

Trait UsbFunctionInterfaceProxyInterface 

Source
pub trait UsbFunctionInterfaceProxyInterface: Send + Sync {
    type ControlResponseFut: Future<Output = Result<UsbFunctionInterfaceControlResult, Error>> + Send;
    type SetConfiguredResponseFut: Future<Output = Result<UsbFunctionInterfaceSetConfiguredResult, Error>> + Send;
    type SetInterfaceResponseFut: Future<Output = Result<UsbFunctionInterfaceSetInterfaceResult, Error>> + Send;

    // Required methods
    fn control(
        &self,
        setup: &UsbSetup,
        write: &[u8],
    ) -> Self::ControlResponseFut;
    fn set_configured(
        &self,
        configured: bool,
        speed: UsbSpeed,
    ) -> Self::SetConfiguredResponseFut;
    fn set_interface(
        &self,
        interface: u8,
        alt_setting: u8,
    ) -> Self::SetInterfaceResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn control(&self, setup: &UsbSetup, write: &[u8]) -> Self::ControlResponseFut

Source

fn set_configured( &self, configured: bool, speed: UsbSpeed, ) -> Self::SetConfiguredResponseFut

Source

fn set_interface( &self, interface: u8, alt_setting: u8, ) -> Self::SetInterfaceResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§