#[repr(C)]pub struct bt_data {
pub type_: u8,
pub data_len: u8,
pub data: *const u8,
}
Expand description
@brief Bluetooth data.
@details Description of different AD Types that can be encoded into advertising data. Used to form arrays that are passed to the @ref bt_le_adv_start function. The @ref BT_DATA define can be used as a helpter to declare the elements of an @ref bt_data array.
Fields§
§type_: u8
Type of scan response data or advertisement data.
data_len: u8
Length of scan response data or advertisement data.
data: *const u8
Pointer to Scan response or advertisement data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for bt_data
impl RefUnwindSafe for bt_data
impl !Send for bt_data
impl !Sync for bt_data
impl Unpin for bt_data
impl UnwindSafe for bt_data
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more