pub trait HardwareSpecializer: Sync + Send {
    // Required method
    fn specialize<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        protocol: &'life1 [ProtocolCommunicationSpecifier]
    ) -> Pin<Box<dyn Future<Output = Result<Hardware, ButtplugDeviceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn specialize<'life0, 'life1, 'async_trait>( &'life0 mut self, protocol: &'life1 [ProtocolCommunicationSpecifier] ) -> Pin<Box<dyn Future<Output = Result<Hardware, ButtplugDeviceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Try to initialize a device.

Given a ProtocolDeviceConfiguration which will contain information about what a protocol needs to communicate with a device, try to identify all required endpoints on the hardware.

Implementors§