pub struct InnerPeripheral { /* private fields */ }Implementations§
Source§impl InnerPeripheral
impl InnerPeripheral
pub fn identifier(&self) -> Result<String, Error>
pub fn address(&self) -> Result<String, Error>
pub fn address_type(&self) -> Result<BluetoothAddressType, Error>
pub fn rssi(&self) -> Result<i16, Error>
pub fn tx_power(&self) -> Result<i16, Error>
pub fn mtu(&self) -> Result<u16, Error>
pub fn connect(&self) -> Result<(), Error>
pub fn disconnect(&self) -> Result<(), Error>
pub fn is_connected(&self) -> Result<bool, Error>
pub fn is_connectable(&self) -> Result<bool, Error>
pub fn is_paired(&self) -> Result<bool, Error>
pub fn unpair(&self) -> Result<(), Error>
pub fn services(&self) -> Result<Vec<Service>, Error>
pub fn manufacturer_data(&self) -> Result<HashMap<u16, Vec<u8>>, Error>
pub fn read( &self, service: &String, characteristic: &String, ) -> Result<Vec<u8>, Error>
pub fn write_request( &self, service: &String, characteristic: &String, data: &Vec<u8>, ) -> Result<(), Error>
pub fn write_command( &self, service: &String, characteristic: &String, data: &Vec<u8>, ) -> Result<(), Error>
pub fn notify( &mut self, service: &String, characteristic: &String, ) -> Result<impl Stream<Item = Result<ValueChangedEvent, Error>>, Error>
pub fn indicate( &mut self, service: &String, characteristic: &String, ) -> Result<impl Stream<Item = Result<ValueChangedEvent, Error>>, Error>
pub fn unsubscribe( &mut self, service: &String, characteristic: &String, ) -> Result<(), Error>
pub fn descriptor_read( &self, service: &String, characteristic: &String, descriptor: &String, ) -> Result<Vec<u8>, Error>
pub fn descriptor_write( &self, service: &String, characteristic: &String, descriptor: &String, data: &Vec<u8>, ) -> Result<(), Error>
pub fn on_callback_connected(&self)
pub fn on_callback_disconnected(&self)
pub fn on_callback_characteristic_updated( &self, service: &String, characteristic: &String, data: &Vec<u8>, )
Trait Implementations§
Source§impl Drop for InnerPeripheral
impl Drop for InnerPeripheral
impl Send for InnerPeripheral
impl Sync for InnerPeripheral
Auto Trait Implementations§
impl !Freeze for InnerPeripheral
impl !RefUnwindSafe for InnerPeripheral
impl Unpin for InnerPeripheral
impl !UnwindSafe for InnerPeripheral
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