[][src]Struct rubble::link::DeviceAddress

pub struct DeviceAddress { /* fields omitted */ }

A Bluetooth device address.

Methods

impl DeviceAddress[src]

pub fn new(bytes: [u8; 6], kind: AddressKind) -> Self[src]

Create a new device address from 6 raw Bytes and an address kind specifier.

The raw array contains the address Bytes as they are sent over the air (LSB first).

pub fn kind(&self) -> AddressKind[src]

Returns the address kind.

pub fn is_random(&self) -> bool[src]

Returns whether this address is randomly generated.

pub fn raw(&self) -> &[u8; 6][src]

Returns the raw bytes making up this address.

Trait Implementations

impl PartialEq<DeviceAddress> for DeviceAddress[src]

impl Eq for DeviceAddress[src]

impl Clone for DeviceAddress[src]

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

Performs copy-assignment from source. Read more

impl Copy for DeviceAddress[src]

impl Debug for DeviceAddress[src]

Auto Trait Implementations

Blanket Implementations

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> From for T[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.

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

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

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

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