[−][src]Struct rubble::link::DeviceAddress
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]
fn eq(&self, other: &DeviceAddress) -> bool
[src]
fn ne(&self, other: &DeviceAddress) -> bool
[src]
impl Eq for DeviceAddress
[src]
impl Clone for DeviceAddress
[src]
fn clone(&self) -> 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
impl Send for DeviceAddress
impl Sync for DeviceAddress
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,