Struct bluetooth_serial_port::BtAddr [] [src]

#[repr(C, packed)]
pub struct BtAddr(pub [u8; 6]);

A 6-byte long MAC address.

Methods

impl BtAddr
[src]

[src]

Returns the MAC address 00:00:00:00:00:00

[src]

Converts a string of the format XX:XX:XX:XX:XX:XX to a BtAddr.

[src]

Converts BtAddr to a string of the format XX:XX:XX:XX:XX:XX.

Trait Implementations

impl Copy for BtAddr
[src]

impl Clone for BtAddr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for BtAddr
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for BtAddr
[src]

impl Debug for BtAddr
[src]

[src]

Formats the value using the given formatter.