( client: &ButtplugClient, index: u32, )
| 105 | pub struct IntifaceRestServer {} |
| 106 | |
| 107 | fn get_device( |
| 108 | client: &ButtplugClient, |
| 109 | index: u32, |
| 110 | ) -> Result<ButtplugClientDevice, IntifaceRestError> { |
| 111 | client |
| 112 | .devices() |
| 113 | .get(&index) |
| 114 | .ok_or(IntifaceRestError::InvalidDevice(index)) |
| 115 | .cloned() |
| 116 | } |
| 117 | |
| 118 | fn get_feature( |
| 119 | client: &ButtplugClient, |
no test coverage detected