pub struct Characteristic { /* private fields */ }
Implementations§
Source§impl Characteristic
impl Characteristic
pub async fn read(&self) -> Result<Vec<u8>>
pub async fn write_request(&self, data: &[u8]) -> Result<()>
pub async fn write_command(&self, data: &[u8]) -> Result<()>
pub async fn subscribe( &self, ) -> Result<Pin<Box<dyn Stream<Item = Vec<u8>> + Send>>>
pub async fn unsubscribe(&self) -> Result<()>
pub fn uuid(&self) -> Uuid
Trait Implementations§
Source§impl Clone for Characteristic
impl Clone for Characteristic
Source§fn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for Characteristic
impl !RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl !UnwindSafe for Characteristic
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