Struct esp32_nimble::BLERemoteCharacteristic
source · pub struct BLERemoteCharacteristic { /* private fields */ }
Implementations§
source§impl BLERemoteCharacteristic
impl BLERemoteCharacteristic
pub fn uuid(&self) -> BleUuid
pub fn properties(&self) -> GattCharacteristicProperties
pub async fn get_descriptors( &mut self, ) -> Result<IterMut<'_, BLERemoteDescriptor>, BLEError>
pub async fn get_descriptor( &mut self, uuid: BleUuid, ) -> Result<&mut BLERemoteDescriptor, BLEError>
pub async fn read_value(&mut self) -> Result<Vec<u8>, BLEError>
pub async fn write_value( &mut self, data: &[u8], response: bool, ) -> Result<(), BLEError>
pub async fn subscribe_notify(&mut self, response: bool) -> Result<(), BLEError>
pub async fn subscribe_indicate( &mut self, response: bool, ) -> Result<(), BLEError>
pub async fn unsubscribe(&mut self, response: bool) -> Result<(), BLEError>
pub fn on_notify( &mut self, callback: impl FnMut(&[u8]) + Send + Sync + 'static, ) -> &mut Self
pub fn can_notify(&self) -> bool
pub fn can_indicate(&self) -> bool
pub fn can_read(&self) -> bool
pub fn can_write(&self) -> bool
pub fn can_write_no_response(&self) -> bool
pub fn can_broadcast(&self) -> bool
Trait Implementations§
source§impl Clone for BLERemoteCharacteristic
impl Clone for BLERemoteCharacteristic
source§fn clone(&self) -> BLERemoteCharacteristic
fn clone(&self) -> BLERemoteCharacteristic
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BLERemoteCharacteristic
impl Debug for BLERemoteCharacteristic
Auto Trait Implementations§
impl Freeze for BLERemoteCharacteristic
impl !RefUnwindSafe for BLERemoteCharacteristic
impl !Send for BLERemoteCharacteristic
impl !Sync for BLERemoteCharacteristic
impl Unpin for BLERemoteCharacteristic
impl !UnwindSafe for BLERemoteCharacteristic
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)