pub struct SimulateDescriptorOperationResponseReturnObject(pub Option<Value>);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.
Tuple Fields§
§0: Option<Value>Trait Implementations§
Source§impl Clone for SimulateDescriptorOperationResponseReturnObject
impl Clone for SimulateDescriptorOperationResponseReturnObject
Source§fn clone(&self) -> SimulateDescriptorOperationResponseReturnObject
fn clone(&self) -> SimulateDescriptorOperationResponseReturnObject
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<'de> Deserialize<'de> for SimulateDescriptorOperationResponseReturnObject
impl<'de> Deserialize<'de> for SimulateDescriptorOperationResponseReturnObject
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 PartialEq for SimulateDescriptorOperationResponseReturnObject
impl PartialEq for SimulateDescriptorOperationResponseReturnObject
Source§fn eq(&self, other: &SimulateDescriptorOperationResponseReturnObject) -> bool
fn eq(&self, other: &SimulateDescriptorOperationResponseReturnObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SimulateDescriptorOperationResponseReturnObject
Auto Trait Implementations§
impl Freeze for SimulateDescriptorOperationResponseReturnObject
impl RefUnwindSafe for SimulateDescriptorOperationResponseReturnObject
impl Send for SimulateDescriptorOperationResponseReturnObject
impl Sync for SimulateDescriptorOperationResponseReturnObject
impl Unpin for SimulateDescriptorOperationResponseReturnObject
impl UnsafeUnpin for SimulateDescriptorOperationResponseReturnObject
impl UnwindSafe for SimulateDescriptorOperationResponseReturnObject
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