pub struct SimulateGattOperationResponse {
pub method: SimulateGattOperationResponseMethod,
pub params: SimulateGattOperationResponseParams,
}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. simulateGATTOperationResponse
Fields§
§method: SimulateGattOperationResponseMethod§params: SimulateGattOperationResponseParamsImplementations§
Source§impl SimulateGattOperationResponse
impl SimulateGattOperationResponse
pub fn builder() -> SimulateGattOperationResponseBuilder
Source§impl SimulateGattOperationResponse
impl SimulateGattOperationResponse
pub const IDENTIFIER: &'static str = "BluetoothEmulation.simulateGATTOperationResponse"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SimulateGattOperationResponse
impl Clone for SimulateGattOperationResponse
Source§fn clone(&self) -> SimulateGattOperationResponse
fn clone(&self) -> SimulateGattOperationResponse
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 CommandResult for SimulateGattOperationResponse
impl CommandResult for SimulateGattOperationResponse
type Result = SimulateGattOperationResponseResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for SimulateGattOperationResponse
impl<'de> Deserialize<'de> for SimulateGattOperationResponse
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
Source§impl From<SimulateGattOperationResponse> for BluetoothEmulationCommands
impl From<SimulateGattOperationResponse> for BluetoothEmulationCommands
Source§fn from(v: SimulateGattOperationResponse) -> Self
fn from(v: SimulateGattOperationResponse) -> Self
Converts to this type from the input type.
Source§impl From<SimulateGattOperationResponse> for BrowserProtocolCommands
impl From<SimulateGattOperationResponse> for BrowserProtocolCommands
Source§fn from(v: SimulateGattOperationResponse) -> Self
fn from(v: SimulateGattOperationResponse) -> Self
Converts to this type from the input type.
Source§impl From<SimulateGattOperationResponse> for Command
impl From<SimulateGattOperationResponse> for Command
Source§fn from(v: SimulateGattOperationResponse) -> Self
fn from(v: SimulateGattOperationResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimulateGattOperationResponse
impl PartialEq for SimulateGattOperationResponse
Source§fn eq(&self, other: &SimulateGattOperationResponse) -> bool
fn eq(&self, other: &SimulateGattOperationResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BluetoothEmulationCommands> for SimulateGattOperationResponse
impl TryFrom<BluetoothEmulationCommands> for SimulateGattOperationResponse
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SimulateGattOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulateGattOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BrowserProtocolCommands> for SimulateGattOperationResponse
impl TryFrom<BrowserProtocolCommands> for SimulateGattOperationResponse
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <SimulateGattOperationResponse as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SimulateGattOperationResponse as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SimulateGattOperationResponse
Auto Trait Implementations§
impl Freeze for SimulateGattOperationResponse
impl RefUnwindSafe for SimulateGattOperationResponse
impl Send for SimulateGattOperationResponse
impl Sync for SimulateGattOperationResponse
impl Unpin for SimulateGattOperationResponse
impl UnsafeUnpin for SimulateGattOperationResponse
impl UnwindSafe for SimulateGattOperationResponse
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