pub struct BluetoothDevice(pub Peripheral);
Tuple Fields§
§0: Peripheral
Implementations§
Source§impl BluetoothDevice
impl BluetoothDevice
pub async fn connect(&self) -> Result<BluetoothConnection, BluetoothError>
Trait Implementations§
Source§impl Clone for BluetoothDevice
impl Clone for BluetoothDevice
Source§fn clone(&self) -> BluetoothDevice
fn clone(&self) -> BluetoothDevice
Returns a duplicate 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 moreSource§impl Debug for BluetoothDevice
impl Debug for BluetoothDevice
Source§impl From<BluetoothDevice> for GenericDevice
impl From<BluetoothDevice> for GenericDevice
Source§fn from(d: BluetoothDevice) -> Self
fn from(d: BluetoothDevice) -> Self
Converts to this type from the input type.
Auto 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