pub struct BluetoothGATTCharacteristic<'a> { /* private fields */ }
Implementations
sourceimpl<'a> BluetoothGATTCharacteristic<'a>
impl<'a> BluetoothGATTCharacteristic<'a>
pub fn new(
session: &'a BluetoothSession,
object_path: String
) -> BluetoothGATTCharacteristic<'_>
pub fn get_id(&self) -> String
pub fn get_uuid(&self) -> Result<String, Box<dyn Error>>
pub fn get_service(&self) -> Result<String, Box<dyn Error>>
pub fn get_value(&self) -> Result<Vec<u8>, Box<dyn Error>>
pub fn is_notifying(&self) -> Result<bool, Box<dyn Error>>
pub fn get_flags(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn get_gatt_descriptors(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn read_value(&self, offset: Option<u16>) -> Result<Vec<u8>, Box<dyn Error>>
pub fn write_value(
&self,
values: Vec<u8>,
offset: Option<u16>
) -> Result<(), Box<dyn Error>>
pub fn start_notify(&self) -> Result<(), Box<dyn Error>>
pub fn stop_notify(&self) -> Result<(), Box<dyn Error>>
pub fn acquire_notify(&self) -> Result<(OwnedFd, u16), Box<dyn Error>>
pub fn acquire_write(&self) -> Result<(OwnedFd, u16), Box<dyn Error>>
Trait Implementations
sourceimpl<'a> Clone for BluetoothGATTCharacteristic<'a>
impl<'a> Clone for BluetoothGATTCharacteristic<'a>
sourcefn clone(&self) -> BluetoothGATTCharacteristic<'a>
fn clone(&self) -> BluetoothGATTCharacteristic<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<'a> !RefUnwindSafe for BluetoothGATTCharacteristic<'a>
impl<'a> !Send for BluetoothGATTCharacteristic<'a>
impl<'a> !Sync for BluetoothGATTCharacteristic<'a>
impl<'a> Unpin for BluetoothGATTCharacteristic<'a>
impl<'a> !UnwindSafe for BluetoothGATTCharacteristic<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more