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