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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".