[][src]Struct bluetooth_serial_port_async::socket::BtAddr

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

A 6-byte long MAC address.

Implementations

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]

impl Copy for BtAddr[src]

impl Debug for BtAddr[src]

impl Eq 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.

impl Ord for BtAddr[src]

impl PartialEq<BtAddr> for BtAddr[src]

impl PartialOrd<BtAddr> for BtAddr[src]

impl StructuralEq for BtAddr[src]

impl StructuralPartialEq 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.

Auto Trait Implementations

impl RefUnwindSafe for BtAddr

impl Send for BtAddr

impl Sync for BtAddr

impl Unpin for BtAddr

impl UnwindSafe for BtAddr

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> ToString for T where
    T: Display + ?Sized
[src]

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.