[][src]Trait buttplug::client::connector::ButtplugClientConnector

pub trait ButtplugClientConnector: Send {
    fn connect<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Option<ButtplugClientConnectorError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn disconnect(&mut self) -> Option<ButtplugClientConnectorError>;
fn send<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        msg: &'life1 ButtplugMessageUnion,
        state: &'life2 ButtplugClientMessageStateShared
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn get_event_receiver(&mut self) -> Receiver<ButtplugMessageUnion>; }

Required methods

fn connect<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<ButtplugClientConnectorError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn disconnect(&mut self) -> Option<ButtplugClientConnectorError>

fn send<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    msg: &'life1 ButtplugMessageUnion,
    state: &'life2 ButtplugClientMessageStateShared
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

fn get_event_receiver(&mut self) -> Receiver<ButtplugMessageUnion>

Loading content...

Implementors

impl ButtplugClientConnector for ButtplugEmbeddedClientConnector[src]

Loading content...