[][src]Trait buttplug::device::protocol::ButtplugProtocolCommandHandler

pub trait ButtplugProtocolCommandHandler: Send + ButtplugProtocolProperties {
    fn handle_command(
        &self,
        device: Arc<Box<dyn DeviceImpl>>,
        command_message: ButtplugDeviceCommandMessageUnion
    ) -> ButtplugServerResultFuture { ... }
fn handle_stop_device_cmd(
        &self,
        device: Arc<Box<dyn DeviceImpl>>,
        message: StopDeviceCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_single_motor_vibrate_cmd(
        &self,
        device: Arc<Box<dyn DeviceImpl>>,
        message: SingleMotorVibrateCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_raw_write_cmd(
        &self,
        device: Arc<Box<dyn DeviceImpl>>,
        message: RawWriteCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_raw_read_cmd(
        &self,
        device: Arc<Box<dyn DeviceImpl>>,
        message: RawReadCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_raw_unsubscribe_cmd(
        &self,
        device: Arc<Box<dyn DeviceImpl>>,
        message: RawUnsubscribeCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_raw_subscribe_cmd(
        &self,
        device: Arc<Box<dyn DeviceImpl>>,
        message: RawSubscribeCmd
    ) -> ButtplugServerResultFuture { ... }
fn command_unimplemented(&self) -> ButtplugServerResultFuture { ... }
fn handle_vorze_a10_cyclone_cmd(
        &self,
        _device: Arc<Box<dyn DeviceImpl>>,
        _message: VorzeA10CycloneCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_kiiroo_cmd(
        &self,
        _device: Arc<Box<dyn DeviceImpl>>,
        _message: KiirooCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_fleshlight_launch_fw12_cmd(
        &self,
        _device: Arc<Box<dyn DeviceImpl>>,
        _message: FleshlightLaunchFW12Cmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_vibrate_cmd(
        &self,
        _device: Arc<Box<dyn DeviceImpl>>,
        _message: VibrateCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_rotate_cmd(
        &self,
        _device: Arc<Box<dyn DeviceImpl>>,
        _message: RotateCmd
    ) -> ButtplugServerResultFuture { ... }
fn handle_linear_cmd(
        &self,
        _device: Arc<Box<dyn DeviceImpl>>,
        _message: LinearCmd
    ) -> ButtplugServerResultFuture { ... } }

Provided methods

fn handle_command(
    &self,
    device: Arc<Box<dyn DeviceImpl>>,
    command_message: ButtplugDeviceCommandMessageUnion
) -> ButtplugServerResultFuture

fn handle_stop_device_cmd(
    &self,
    device: Arc<Box<dyn DeviceImpl>>,
    message: StopDeviceCmd
) -> ButtplugServerResultFuture

fn handle_single_motor_vibrate_cmd(
    &self,
    device: Arc<Box<dyn DeviceImpl>>,
    message: SingleMotorVibrateCmd
) -> ButtplugServerResultFuture

fn handle_raw_write_cmd(
    &self,
    device: Arc<Box<dyn DeviceImpl>>,
    message: RawWriteCmd
) -> ButtplugServerResultFuture

fn handle_raw_read_cmd(
    &self,
    device: Arc<Box<dyn DeviceImpl>>,
    message: RawReadCmd
) -> ButtplugServerResultFuture

fn handle_raw_unsubscribe_cmd(
    &self,
    device: Arc<Box<dyn DeviceImpl>>,
    message: RawUnsubscribeCmd
) -> ButtplugServerResultFuture

fn handle_raw_subscribe_cmd(
    &self,
    device: Arc<Box<dyn DeviceImpl>>,
    message: RawSubscribeCmd
) -> ButtplugServerResultFuture

fn command_unimplemented(&self) -> ButtplugServerResultFuture

fn handle_vorze_a10_cyclone_cmd(
    &self,
    _device: Arc<Box<dyn DeviceImpl>>,
    _message: VorzeA10CycloneCmd
) -> ButtplugServerResultFuture

fn handle_kiiroo_cmd(
    &self,
    _device: Arc<Box<dyn DeviceImpl>>,
    _message: KiirooCmd
) -> ButtplugServerResultFuture

fn handle_fleshlight_launch_fw12_cmd(
    &self,
    _device: Arc<Box<dyn DeviceImpl>>,
    _message: FleshlightLaunchFW12Cmd
) -> ButtplugServerResultFuture

fn handle_vibrate_cmd(
    &self,
    _device: Arc<Box<dyn DeviceImpl>>,
    _message: VibrateCmd
) -> ButtplugServerResultFuture

fn handle_rotate_cmd(
    &self,
    _device: Arc<Box<dyn DeviceImpl>>,
    _message: RotateCmd
) -> ButtplugServerResultFuture

fn handle_linear_cmd(
    &self,
    _device: Arc<Box<dyn DeviceImpl>>,
    _message: LinearCmd
) -> ButtplugServerResultFuture

Loading content...

Implementors

Loading content...