Struct bluetooth_serial_port::BtDevice [] [src]

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

A device with its a name and address.

Fields

The name of the device.

The MAC address of the device.

Methods

impl BtDevice
[src]

Create a new BtDevice manually from a name and addr.

Trait Implementations

impl Debug for BtDevice
[src]

Formats the value using the given formatter.

impl Clone for BtDevice
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for BtDevice
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BtDevice
[src]