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

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