[][src]Trait buttplug::device::DeviceImpl

pub trait DeviceImpl: Sync + Send {
    fn name(&self) -> &str;
fn address(&self) -> &str;
fn connected(&self) -> bool;
fn endpoints(&self) -> Vec<Endpoint>;
fn get_event_receiver(&self) -> BoundedDeviceEventBroadcaster;
fn disconnect(&self) -> ButtplugResultFuture;
fn read_value(
        &self,
        msg: DeviceReadCmd
    ) -> BoxFuture<'static, Result<RawReading, ButtplugError>>;
fn write_value(&self, msg: DeviceWriteCmd) -> ButtplugResultFuture;
fn subscribe(&self, msg: DeviceSubscribeCmd) -> ButtplugResultFuture;
fn unsubscribe(&self, msg: DeviceUnsubscribeCmd) -> ButtplugResultFuture; }

Required methods

Loading content...

Implementors

impl DeviceImpl for LovenseDongleDeviceImpl[src]

impl DeviceImpl for SerialPortDeviceImpl[src]

impl DeviceImpl for TestDevice[src]

Loading content...