[][src]Struct bluetooth_serial_port::BtAddr

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

A 6-byte long MAC address.

Methods

impl BtAddr[src]

pub fn any() -> BtAddr[src]

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

Trait Implementations

impl Clone for BtAddr[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<BtAddr> for BtAddr[src]

impl PartialOrd<BtAddr> for BtAddr[src]

impl Eq for BtAddr[src]

impl Ord for BtAddr[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Copy for BtAddr[src]

impl ToString for BtAddr[src]

fn to_string(&self) -> String[src]

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

impl Debug for BtAddr[src]

impl FromStr for BtAddr[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

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

Auto Trait Implementations

impl Send for BtAddr

impl Sync for BtAddr

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.