[−][src]Struct bluetooth_serial_port_async::BtDevice
A device with its a name and address.
Fields
name: String
The name of the device.
addr: BtAddr
The MAC address of the device.
Implementations
impl BtDevice
[src]
pub fn new(name: String, addr: BtAddr) -> BtDevice
[src]
Create a new BtDevice
manually from a name and addr.
Trait Implementations
impl Clone for BtDevice
[src]
impl Debug for BtDevice
[src]
impl Eq for BtDevice
[src]
impl PartialEq<BtDevice> for BtDevice
[src]
impl StructuralEq for BtDevice
[src]
impl StructuralPartialEq for BtDevice
[src]
Auto Trait Implementations
impl RefUnwindSafe for BtDevice
[src]
impl Send for BtDevice
[src]
impl Sync for BtDevice
[src]
impl Unpin for BtDevice
[src]
impl UnwindSafe for BtDevice
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,