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

pub trait ButtplugClientConnector: Send {
#[must_use]    fn connect<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), ButtplugClientConnectorError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn disconnect<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), ButtplugClientConnectorError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn send<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        msg: ButtplugClientInMessage,
        state: &'life1 ButtplugMessageStateShared
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_event_receiver(&mut self) -> Receiver<ButtplugClientOutMessage>; }

Required methods

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

#[must_use]fn disconnect<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), ButtplugClientConnectorError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn send<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    msg: ButtplugClientInMessage,
    state: &'life1 ButtplugMessageStateShared
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

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

Loading content...

Implementors

impl ButtplugClientConnector for ButtplugEmbeddedClientConnector[src]

impl ButtplugClientConnector for ButtplugWebsocketClientConnector[src]

Loading content...