Struct bluetooth::empty::BluetoothDevice
source · pub struct BluetoothDevice {}
Implementations§
source§impl BluetoothDevice
impl BluetoothDevice
pub fn new(_device: String) -> BluetoothDevice
pub fn get_id(&self) -> String
pub fn get_address(&self) -> Result<String, Box<dyn Error>>
pub fn get_name(&self) -> Result<String, Box<dyn Error>>
pub fn get_icon(&self) -> Result<String, Box<dyn Error>>
pub fn get_class(&self) -> Result<u32, Box<dyn Error>>
pub fn get_appearance(&self) -> Result<u16, Box<dyn Error>>
pub fn get_uuids(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn is_paired(&self) -> Result<bool, Box<dyn Error>>
pub fn is_connected(&self) -> Result<bool, Box<dyn Error>>
pub fn is_trusted(&self) -> Result<bool, Box<dyn Error>>
pub fn is_blocked(&self) -> Result<bool, Box<dyn Error>>
pub fn get_alias(&self) -> Result<String, Box<dyn Error>>
pub fn set_alias(&self, _value: String) -> Result<(), Box<dyn Error>>
pub fn is_legacy_pairing(&self) -> Result<bool, Box<dyn Error>>
pub fn get_vendor_id_source(&self) -> Result<String, Box<dyn Error>>
pub fn get_vendor_id(&self) -> Result<u32, Box<dyn Error>>
pub fn get_product_id(&self) -> Result<u32, Box<dyn Error>>
pub fn get_device_id(&self) -> Result<u32, Box<dyn Error>>
pub fn get_modalias(&self) -> Result<(String, u32, u32, u32), Box<dyn Error>>
pub fn get_rssi(&self) -> Result<i16, Box<dyn Error>>
pub fn get_tx_power(&self) -> Result<i16, Box<dyn Error>>
pub fn get_manufacturer_data( &self, ) -> Result<HashMap<u16, Vec<u8>>, Box<dyn Error>>
pub fn get_service_data( &self, ) -> Result<HashMap<String, Vec<u8>>, Box<dyn Error>>
pub fn get_gatt_services(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn connect(&self) -> Result<(), Box<dyn Error>>
pub fn disconnect(&self) -> Result<(), Box<dyn Error>>
pub fn connect_profile(&self, _uuid: String) -> Result<(), Box<dyn Error>>
pub fn disconnect_profile(&self, _uuid: String) -> Result<(), Box<dyn Error>>
pub fn pair(&self) -> Result<(), Box<dyn Error>>
pub fn cancel_pairing(&self) -> Result<(), Box<dyn Error>>
Trait Implementations§
source§impl Clone for BluetoothDevice
impl Clone for BluetoothDevice
source§fn clone(&self) -> BluetoothDevice
fn clone(&self) -> BluetoothDevice
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 BluetoothDevice
impl RefUnwindSafe for BluetoothDevice
impl Send for BluetoothDevice
impl Sync for BluetoothDevice
impl Unpin for BluetoothDevice
impl UnwindSafe for BluetoothDevice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert