pub struct SimulateGattOperationResponseParams {
pub address: String,
pub type: GattOperationType,
pub code: i64,
}Expand description
Simulates the response code from the peripheral with |address| for a GATT operation of |type|. The |code| value follows the HCI Error Codes from Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
Parameters of BluetoothEmulation.simulateGATTOperationResponse.
Fields§
§address: String§type: GattOperationType§code: i64Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimulateGattOperationResponseParams
impl<'de> Deserialize<'de> for SimulateGattOperationResponseParams
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 SimulateGattOperationResponseParams
Auto Trait Implementations§
impl Forget for SimulateGattOperationResponseParams
impl Freeze for SimulateGattOperationResponseParams
impl RefUnwindSafe for SimulateGattOperationResponseParams
impl Send for SimulateGattOperationResponseParams
impl Sync for SimulateGattOperationResponseParams
impl Unpin for SimulateGattOperationResponseParams
impl UnsafeUnpin for SimulateGattOperationResponseParams
impl UnwindSafe for SimulateGattOperationResponseParams
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