#[repr(C)]pub struct ble_gap_disc_params {
pub itvl: u16,
pub window: u16,
pub filter_policy: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
}
Expand description
@brief Discovery parameters
Fields§
§itvl: u16
Scan interval in 0.625ms units
window: u16
Scan window in 0.625ms units
filter_policy: u8
Scan filter policy
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
Implementations§
Source§impl ble_gap_disc_params
impl ble_gap_disc_params
pub fn limited(&self) -> u8
pub fn set_limited(&mut self, val: u8)
pub fn passive(&self) -> u8
pub fn set_passive(&mut self, val: u8)
pub fn filter_duplicates(&self) -> u8
pub fn set_filter_duplicates(&mut self, val: u8)
pub fn new_bitfield_1( limited: u8, passive: u8, filter_duplicates: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for ble_gap_disc_params
impl Clone for ble_gap_disc_params
Source§fn clone(&self) -> ble_gap_disc_params
fn clone(&self) -> ble_gap_disc_params
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ble_gap_disc_params
impl Debug for ble_gap_disc_params
Source§impl Default for ble_gap_disc_params
impl Default for ble_gap_disc_params
Source§fn default() -> ble_gap_disc_params
fn default() -> ble_gap_disc_params
Returns the “default value” for a type. Read more
impl Copy for ble_gap_disc_params
Auto Trait Implementations§
impl Freeze for ble_gap_disc_params
impl RefUnwindSafe for ble_gap_disc_params
impl Send for ble_gap_disc_params
impl Sync for ble_gap_disc_params
impl Unpin for ble_gap_disc_params
impl UnwindSafe for ble_gap_disc_params
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 6 bytes