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.
Fields§
§address: String§type_: GATTOperationType§code: i64Implementations§
Trait Implementations§
Source§impl Clone for SimulateGATTOperationResponseParams
impl Clone for SimulateGATTOperationResponseParams
Source§fn clone(&self) -> SimulateGATTOperationResponseParams
fn clone(&self) -> SimulateGATTOperationResponseParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SimulateGATTOperationResponseParams
impl Default for SimulateGATTOperationResponseParams
Source§fn default() -> SimulateGATTOperationResponseParams
fn default() -> SimulateGATTOperationResponseParams
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
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