pub struct SimulateDescriptorOperationResponseParams<'a> { /* private fields */ }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.
Implementations§
Source§impl<'a> SimulateDescriptorOperationResponseParams<'a>
impl<'a> SimulateDescriptorOperationResponseParams<'a>
Sourcepub fn builder(
descriptor_id: impl Into<Cow<'a, str>>,
type_: impl Into<DescriptorOperationType>,
code: i64,
) -> SimulateDescriptorOperationResponseParamsBuilder<'a>
pub fn builder( descriptor_id: impl Into<Cow<'a, str>>, type_: impl Into<DescriptorOperationType>, code: i64, ) -> SimulateDescriptorOperationResponseParamsBuilder<'a>
Creates a builder for this type with the required parameters:
descriptor_id:type_:code:
pub fn descriptor_id(&self) -> &str
pub fn type_(&self) -> &DescriptorOperationType
pub fn code(&self) -> i64
pub fn data(&self) -> Option<&str>
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SimulateDescriptorOperationResponseParams<'a>
impl<'a> CdpCommand<'a> for SimulateDescriptorOperationResponseParams<'a>
Source§impl<'a> Clone for SimulateDescriptorOperationResponseParams<'a>
impl<'a> Clone for SimulateDescriptorOperationResponseParams<'a>
Source§fn clone(&self) -> SimulateDescriptorOperationResponseParams<'a>
fn clone(&self) -> SimulateDescriptorOperationResponseParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SimulateDescriptorOperationResponseParams<'a>
impl<'a> Debug for SimulateDescriptorOperationResponseParams<'a>
Source§impl<'a> Default for SimulateDescriptorOperationResponseParams<'a>
impl<'a> Default for SimulateDescriptorOperationResponseParams<'a>
Source§fn default() -> SimulateDescriptorOperationResponseParams<'a>
fn default() -> SimulateDescriptorOperationResponseParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SimulateDescriptorOperationResponseParams<'a>
impl<'de, 'a> Deserialize<'de> for SimulateDescriptorOperationResponseParams<'a>
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<'a> Freeze for SimulateDescriptorOperationResponseParams<'a>
impl<'a> RefUnwindSafe for SimulateDescriptorOperationResponseParams<'a>
impl<'a> Send for SimulateDescriptorOperationResponseParams<'a>
impl<'a> Sync for SimulateDescriptorOperationResponseParams<'a>
impl<'a> Unpin for SimulateDescriptorOperationResponseParams<'a>
impl<'a> UnsafeUnpin for SimulateDescriptorOperationResponseParams<'a>
impl<'a> UnwindSafe for SimulateDescriptorOperationResponseParams<'a>
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