pub struct ScanParameters {
pub scan_type: ScanType,
pub scan_window: ScanWindow,
pub own_address_type: OwnAddressType,
pub filter_policy: ScanFilterPolicy,
}
Expand description
Parameters for the le_set_scan_parameters
command.
Fields§
§scan_type: ScanType
The type of scan to perform
scan_window: ScanWindow
Recommendation from the host on how frequently the controller should scan. See the Bluetooth spec, Vol 6, Part B, Section 4.5.3.
own_address_type: OwnAddressType
Indicates the type of address being used in the scan request packets.
filter_policy: ScanFilterPolicy
Indicates which advertising packets to accept.
Trait Implementations§
Source§impl Clone for ScanParameters
impl Clone for ScanParameters
Source§fn clone(&self) -> ScanParameters
fn clone(&self) -> ScanParameters
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 ScanParameters
impl Debug for ScanParameters
Source§impl PartialEq for ScanParameters
impl PartialEq for ScanParameters
impl StructuralPartialEq for ScanParameters
Auto Trait Implementations§
impl Freeze for ScanParameters
impl RefUnwindSafe for ScanParameters
impl Send for ScanParameters
impl Sync for ScanParameters
impl Unpin for ScanParameters
impl UnwindSafe for ScanParameters
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