pub struct SimulateCharacteristicOperationResponse {
pub method: SimulateCharacteristicOperationResponseMethod,
pub params: SimulateCharacteristicOperationResponseParams,
}Expand description
Simulates the response from the characteristic with |characteristicId| for a characteristic 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. simulateCharacteristicOperationResponse
Fields§
§method: SimulateCharacteristicOperationResponseMethod§params: SimulateCharacteristicOperationResponseParamsImplementations§
Source§impl SimulateCharacteristicOperationResponse
impl SimulateCharacteristicOperationResponse
pub const IDENTIFIER: &'static str = "BluetoothEmulation.simulateCharacteristicOperationResponse"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SimulateCharacteristicOperationResponse
impl Clone for SimulateCharacteristicOperationResponse
Source§fn clone(&self) -> SimulateCharacteristicOperationResponse
fn clone(&self) -> SimulateCharacteristicOperationResponse
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 SimulateCharacteristicOperationResponse
impl CommandResult for SimulateCharacteristicOperationResponse
type Result = SimulateCharacteristicOperationResponseResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for SimulateCharacteristicOperationResponse
impl<'de> Deserialize<'de> for SimulateCharacteristicOperationResponse
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<SimulateCharacteristicOperationResponse> for BluetoothEmulationCommands
impl From<SimulateCharacteristicOperationResponse> for BluetoothEmulationCommands
Source§fn from(v: SimulateCharacteristicOperationResponse) -> Self
fn from(v: SimulateCharacteristicOperationResponse) -> Self
Converts to this type from the input type.
Source§impl From<SimulateCharacteristicOperationResponse> for BrowserProtocolCommands
impl From<SimulateCharacteristicOperationResponse> for BrowserProtocolCommands
Source§fn from(v: SimulateCharacteristicOperationResponse) -> Self
fn from(v: SimulateCharacteristicOperationResponse) -> Self
Converts to this type from the input type.
Source§impl From<SimulateCharacteristicOperationResponse> for Command
impl From<SimulateCharacteristicOperationResponse> for Command
Source§fn from(v: SimulateCharacteristicOperationResponse) -> Self
fn from(v: SimulateCharacteristicOperationResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimulateCharacteristicOperationResponse
impl PartialEq for SimulateCharacteristicOperationResponse
Source§fn eq(&self, other: &SimulateCharacteristicOperationResponse) -> bool
fn eq(&self, other: &SimulateCharacteristicOperationResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BluetoothEmulationCommands> for SimulateCharacteristicOperationResponse
impl TryFrom<BluetoothEmulationCommands> for SimulateCharacteristicOperationResponse
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, <SimulateCharacteristicOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulateCharacteristicOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BrowserProtocolCommands> for SimulateCharacteristicOperationResponse
impl TryFrom<BrowserProtocolCommands> for SimulateCharacteristicOperationResponse
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, <SimulateCharacteristicOperationResponse as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SimulateCharacteristicOperationResponse as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SimulateCharacteristicOperationResponse
Auto Trait Implementations§
impl Freeze for SimulateCharacteristicOperationResponse
impl RefUnwindSafe for SimulateCharacteristicOperationResponse
impl Send for SimulateCharacteristicOperationResponse
impl Sync for SimulateCharacteristicOperationResponse
impl Unpin for SimulateCharacteristicOperationResponse
impl UnsafeUnpin for SimulateCharacteristicOperationResponse
impl UnwindSafe for SimulateCharacteristicOperationResponse
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