Struct buttplug::device::protocol::raw_protocol::RawProtocol [−][src]
pub struct RawProtocol { /* fields omitted */ }
Implementations
pub fn new(name: &str, message_attributes: DeviceMessageAttributesMap) -> Self where
Self: Sized,
Trait Implementations
fn try_create(
device_impl: Arc<DeviceImpl>,
config: DeviceProtocolConfiguration
) -> BoxFuture<'static, Result<Box<dyn ButtplugProtocol>, ButtplugError>>
fn handle_command(
&self,
device: Arc<DeviceImpl>,
command_message: ButtplugDeviceCommandMessageUnion
) -> ButtplugDeviceResultFuture
fn handle_stop_device_cmd(
&self,
device: Arc<DeviceImpl>,
message: StopDeviceCmd
) -> ButtplugDeviceResultFuture
fn handle_single_motor_vibrate_cmd(
&self,
device: Arc<DeviceImpl>,
message: SingleMotorVibrateCmd
) -> ButtplugDeviceResultFuture
fn handle_raw_write_cmd(
&self,
device: Arc<DeviceImpl>,
message: RawWriteCmd
) -> ButtplugDeviceResultFuture
fn handle_raw_read_cmd(
&self,
device: Arc<DeviceImpl>,
message: RawReadCmd
) -> ButtplugDeviceResultFuture
fn handle_raw_unsubscribe_cmd(
&self,
device: Arc<DeviceImpl>,
message: RawUnsubscribeCmd
) -> ButtplugDeviceResultFuture
fn handle_raw_subscribe_cmd(
&self,
device: Arc<DeviceImpl>,
message: RawSubscribeCmd
) -> ButtplugDeviceResultFuture
fn handle_vorze_a10_cyclone_cmd(
&self,
_device: Arc<DeviceImpl>,
message: VorzeA10CycloneCmd
) -> ButtplugDeviceResultFuture
fn handle_kiiroo_cmd(
&self,
_device: Arc<DeviceImpl>,
message: KiirooCmd
) -> ButtplugDeviceResultFuture
fn handle_fleshlight_launch_fw12_cmd(
&self,
_device: Arc<DeviceImpl>,
message: FleshlightLaunchFW12Cmd
) -> ButtplugDeviceResultFuture
fn handle_vibrate_cmd(
&self,
_device: Arc<DeviceImpl>,
message: VibrateCmd
) -> ButtplugDeviceResultFuture
fn handle_rotate_cmd(
&self,
_device: Arc<DeviceImpl>,
message: RotateCmd
) -> ButtplugDeviceResultFuture
fn handle_linear_cmd(
&self,
_device: Arc<DeviceImpl>,
message: LinearCmd
) -> ButtplugDeviceResultFuture
fn handle_battery_level_cmd(
&self,
device: Arc<DeviceImpl>,
message: BatteryLevelCmd
) -> ButtplugDeviceResultFuture
fn handle_rssi_level_cmd(
&self,
_device: Arc<DeviceImpl>,
message: RSSILevelCmd
) -> ButtplugDeviceResultFuture
fn stop_commands(&self) -> Vec<ButtplugDeviceCommandMessageUnion>ⓘ
fn supports_message(
&self,
message: &ButtplugDeviceCommandMessageUnion
) -> Result<(), ButtplugError>
Auto Trait Implementations
impl !RefUnwindSafe for RawProtocol
impl Send for RawProtocol
impl Sync for RawProtocol
impl Unpin for RawProtocol
impl !UnwindSafe for RawProtocol
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more