[][src]Struct bluetooth_serial_port_async::BtDevice

pub struct BtDevice {
    pub name: String,
    pub addr: BtAddr,
}

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.