pub struct PublishedCharacteristic { /* private fields */ }Expand description
A characteristic that is live in the local GATT database.
Implementations§
Source§impl PublishedCharacteristic
impl PublishedCharacteristic
pub fn uuid(&self) -> &BluetoothUuid
Sourcepub fn subscribers(&self) -> Vec<RemoteCentral>
pub fn subscribers(&self) -> Vec<RemoteCentral>
The centrals BlueZ has told us are subscribed.
BlueZ reports that someone subscribed, not who: StartNotify carries
no device. The entries here therefore stand for the subscription rather
than identifying a peer.
Sourcepub fn try_notify(&self, value: &[u8]) -> bool
pub fn try_notify(&self, value: &[u8]) -> bool
Push a value to whoever is subscribed, without waiting.
There is no “notify” call in BlueZ’s GATT API. A subscribed central is
sent a value by emitting PropertiesChanged for this characteristic’s
Value; BlueZ decides from the flags whether that goes out as a
notification or an indication.
Trait Implementations§
Source§impl Clone for PublishedCharacteristic
impl Clone for PublishedCharacteristic
Auto Trait Implementations§
impl !RefUnwindSafe for PublishedCharacteristic
impl !UnwindSafe for PublishedCharacteristic
impl Forget for PublishedCharacteristic
impl Freeze for PublishedCharacteristic
impl Move for PublishedCharacteristic
impl Send for PublishedCharacteristic
impl Sync for PublishedCharacteristic
impl Unpin for PublishedCharacteristic
impl UnsafeUnpin for PublishedCharacteristic
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