pub struct SimulateDescriptorOperationResponseParams {
pub descriptor_id: String,
pub type: DescriptorOperationType,
pub code: i64,
pub data: Option<String>,
}Expand description
Simulates the response from the descriptor with |descriptorId| for a descriptor operation of |type|. The |code| value follows the Error Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response. The |data| is expected to exist when simulating a successful read operation response.
Parameters of BluetoothEmulation.simulateDescriptorOperationResponse.
Fields§
§descriptor_id: String§type: DescriptorOperationType§code: i64§data: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimulateDescriptorOperationResponseParams
impl<'de> Deserialize<'de> for SimulateDescriptorOperationResponseParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SimulateDescriptorOperationResponseParams
Auto Trait Implementations§
impl Forget for SimulateDescriptorOperationResponseParams
impl Freeze for SimulateDescriptorOperationResponseParams
impl RefUnwindSafe for SimulateDescriptorOperationResponseParams
impl Send for SimulateDescriptorOperationResponseParams
impl Sync for SimulateDescriptorOperationResponseParams
impl Unpin for SimulateDescriptorOperationResponseParams
impl UnsafeUnpin for SimulateDescriptorOperationResponseParams
impl UnwindSafe for SimulateDescriptorOperationResponseParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more