Struct esp32_nimble::BLEAddress
source · pub struct BLEAddress { /* private fields */ }
Implementations§
source§impl BLEAddress
impl BLEAddress
pub fn from_le_bytes(val: [u8; 6], addr_type: BLEAddressType) -> Self
pub fn from_be_bytes(val: [u8; 6], addr_type: BLEAddressType) -> Self
pub fn from_str(input: &str, addr_type: BLEAddressType) -> Option<Self>
sourcepub fn as_le_bytes(&self) -> [u8; 6]
pub fn as_le_bytes(&self) -> [u8; 6]
Get the native representation of the address.
pub fn as_be_bytes(&self) -> [u8; 6]
sourcepub fn addr_type(&self) -> BLEAddressType
pub fn addr_type(&self) -> BLEAddressType
Get the address type.
Trait Implementations§
source§impl Clone for BLEAddress
impl Clone for BLEAddress
source§fn clone(&self) -> BLEAddress
fn clone(&self) -> BLEAddress
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BLEAddress
impl Debug for BLEAddress
source§impl Display for BLEAddress
impl Display for BLEAddress
source§impl From<ble_addr_t> for BLEAddress
impl From<ble_addr_t> for BLEAddress
source§fn from(value: ble_addr_t) -> Self
fn from(value: ble_addr_t) -> Self
Converts to this type from the input type.
source§impl PartialEq for BLEAddress
impl PartialEq for BLEAddress
impl Copy for BLEAddress
impl Eq for BLEAddress
Auto Trait Implementations§
impl Freeze for BLEAddress
impl RefUnwindSafe for BLEAddress
impl Send for BLEAddress
impl Sync for BLEAddress
impl Unpin for BLEAddress
impl UnwindSafe for BLEAddress
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)