pub struct AddCharacteristic {
pub method: AddCharacteristicMethod,
pub params: AddCharacteristicParams,
}Expand description
Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId|. addCharacteristic
Fields§
§method: AddCharacteristicMethod§params: AddCharacteristicParamsImplementations§
Source§impl AddCharacteristic
impl AddCharacteristic
pub fn builder() -> AddCharacteristicBuilder
Source§impl AddCharacteristic
impl AddCharacteristic
pub const IDENTIFIER: &'static str = "BluetoothEmulation.addCharacteristic"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for AddCharacteristic
impl Clone for AddCharacteristic
Source§fn clone(&self) -> AddCharacteristic
fn clone(&self) -> AddCharacteristic
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 AddCharacteristic
impl CommandResult for AddCharacteristic
type Result = AddCharacteristicResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for AddCharacteristic
impl Debug for AddCharacteristic
Source§impl<'de> Deserialize<'de> for AddCharacteristic
impl<'de> Deserialize<'de> for AddCharacteristic
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<AddCharacteristic> for BluetoothEmulationCommands
impl From<AddCharacteristic> for BluetoothEmulationCommands
Source§fn from(v: AddCharacteristic) -> Self
fn from(v: AddCharacteristic) -> Self
Converts to this type from the input type.
Source§impl From<AddCharacteristic> for BrowserProtocolCommands
impl From<AddCharacteristic> for BrowserProtocolCommands
Source§fn from(v: AddCharacteristic) -> Self
fn from(v: AddCharacteristic) -> Self
Converts to this type from the input type.
Source§impl From<AddCharacteristic> for Command
impl From<AddCharacteristic> for Command
Source§fn from(v: AddCharacteristic) -> Self
fn from(v: AddCharacteristic) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddCharacteristic
impl PartialEq for AddCharacteristic
Source§impl Serialize for AddCharacteristic
impl Serialize for AddCharacteristic
Source§impl TryFrom<BluetoothEmulationCommands> for AddCharacteristic
impl TryFrom<BluetoothEmulationCommands> for AddCharacteristic
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, <AddCharacteristic as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <AddCharacteristic as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BrowserProtocolCommands> for AddCharacteristic
impl TryFrom<BrowserProtocolCommands> for AddCharacteristic
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, <AddCharacteristic as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <AddCharacteristic as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for AddCharacteristic
impl TryFrom<Command> for AddCharacteristic
impl StructuralPartialEq for AddCharacteristic
Auto Trait Implementations§
impl Freeze for AddCharacteristic
impl RefUnwindSafe for AddCharacteristic
impl Send for AddCharacteristic
impl Sync for AddCharacteristic
impl Unpin for AddCharacteristic
impl UnsafeUnpin for AddCharacteristic
impl UnwindSafe for AddCharacteristic
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