pub struct AddCharacteristicParams<'a> { /* private fields */ }Expand description
Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId|.
Implementations§
Source§impl<'a> AddCharacteristicParams<'a>
impl<'a> AddCharacteristicParams<'a>
pub fn builder( serviceId: impl Into<Cow<'a, str>>, characteristicUuid: impl Into<Cow<'a, str>>, properties: CharacteristicProperties, ) -> AddCharacteristicParamsBuilder<'a>
pub fn serviceId(&self) -> &str
pub fn characteristicUuid(&self) -> &str
pub fn properties(&self) -> &CharacteristicProperties
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for AddCharacteristicParams<'a>
impl<'a> CdpCommand<'a> for AddCharacteristicParams<'a>
Source§impl<'a> Clone for AddCharacteristicParams<'a>
impl<'a> Clone for AddCharacteristicParams<'a>
Source§fn clone(&self) -> AddCharacteristicParams<'a>
fn clone(&self) -> AddCharacteristicParams<'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 AddCharacteristicParams<'a>
impl<'a> Debug for AddCharacteristicParams<'a>
Source§impl<'a> Default for AddCharacteristicParams<'a>
impl<'a> Default for AddCharacteristicParams<'a>
Source§fn default() -> AddCharacteristicParams<'a>
fn default() -> AddCharacteristicParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AddCharacteristicParams<'a>
impl<'de, 'a> Deserialize<'de> for AddCharacteristicParams<'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 AddCharacteristicParams<'a>
impl<'a> RefUnwindSafe for AddCharacteristicParams<'a>
impl<'a> Send for AddCharacteristicParams<'a>
impl<'a> Sync for AddCharacteristicParams<'a>
impl<'a> Unpin for AddCharacteristicParams<'a>
impl<'a> UnsafeUnpin for AddCharacteristicParams<'a>
impl<'a> UnwindSafe for AddCharacteristicParams<'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