pub struct AddDescriptor {
pub method: AddDescriptorMethod,
pub params: AddDescriptorParams,
}Expand description
Adds a descriptor with |descriptorUuid| to the characteristic respresented by |characteristicId|. addDescriptor
Fields§
§method: AddDescriptorMethod§params: AddDescriptorParamsImplementations§
Source§impl AddDescriptor
impl AddDescriptor
pub fn builder() -> AddDescriptorBuilder
Source§impl AddDescriptor
impl AddDescriptor
pub const IDENTIFIER: &'static str = "BluetoothEmulation.addDescriptor"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for AddDescriptor
impl Clone for AddDescriptor
Source§fn clone(&self) -> AddDescriptor
fn clone(&self) -> AddDescriptor
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 AddDescriptor
impl CommandResult for AddDescriptor
type Result = AddDescriptorResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for AddDescriptor
impl Debug for AddDescriptor
Source§impl<'de> Deserialize<'de> for AddDescriptor
impl<'de> Deserialize<'de> for AddDescriptor
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<AddDescriptor> for BluetoothEmulationCommands
impl From<AddDescriptor> for BluetoothEmulationCommands
Source§fn from(v: AddDescriptor) -> Self
fn from(v: AddDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<AddDescriptor> for BrowserProtocolCommands
impl From<AddDescriptor> for BrowserProtocolCommands
Source§fn from(v: AddDescriptor) -> Self
fn from(v: AddDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<AddDescriptor> for Command
impl From<AddDescriptor> for Command
Source§fn from(v: AddDescriptor) -> Self
fn from(v: AddDescriptor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddDescriptor
impl PartialEq for AddDescriptor
Source§impl Serialize for AddDescriptor
impl Serialize for AddDescriptor
Source§impl TryFrom<BluetoothEmulationCommands> for AddDescriptor
impl TryFrom<BluetoothEmulationCommands> for AddDescriptor
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, <AddDescriptor as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <AddDescriptor as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BrowserProtocolCommands> for AddDescriptor
impl TryFrom<BrowserProtocolCommands> for AddDescriptor
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, <AddDescriptor as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <AddDescriptor as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for AddDescriptor
impl TryFrom<Command> for AddDescriptor
impl StructuralPartialEq for AddDescriptor
Auto Trait Implementations§
impl Freeze for AddDescriptor
impl RefUnwindSafe for AddDescriptor
impl Send for AddDescriptor
impl Sync for AddDescriptor
impl Unpin for AddDescriptor
impl UnsafeUnpin for AddDescriptor
impl UnwindSafe for AddDescriptor
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