Struct bluetooth_serial_port::BtAddr
[−]
[src]
pub struct BtAddr(pub [u8; 6]);
A 6-byte long MAC address.
Methods
impl BtAddr
[src]
fn any() -> BtAddr
Returns the MAC address 00:00:00:00:00:00
fn from_str(s: &str) -> Result<BtAddr, ()>
Converts a string of the format XX:XX:XX:XX:XX:XX
to a BtAddr
.
fn to_string(&self) -> String
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]
fn clone(&self) -> BtAddr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for BtAddr
[src]
fn eq(&self, __arg_0: &BtAddr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BtAddr) -> bool
This method tests for !=
.