[−][src]Struct bluetooth_hci::host::ScanWindow
Define a scanning window.
The controller runs LE scans every interval
, with scanning active
during the window
in every interval.
The minimum time range is 2.5 ms, and the maximum is 10.24 s. The window must be shorter than or equal to the interval.
Implementations
impl ScanWindow
[src]
pub fn interval(&self) -> Duration
[src]
Returns the interval for the scanning window. The controller starts an LE scan every interval.
pub fn window(&self) -> Duration
[src]
Returns the amount of time the controller is scanning every interval.
pub fn copy_into_slice(&self, bytes: &mut [u8])
[src]
pub fn start_every(
interval: Duration
) -> Result<ScanWindowBuilder, ScanWindowError>
[src]
interval: Duration
) -> Result<ScanWindowBuilder, ScanWindowError>
Begins building a ScanWindow. The scan window has the given interval. Returns a builder that can be used to set the window duration.
Errors
- ScanWindowError::TooShort if the provided interval is too short. It must be at least 2.5 ms.
- ScanWindowError::TooLong if the provided interval is too long. It must be 10.24 seconds or less.
Trait Implementations
impl Clone for ScanWindow
[src]
fn clone(&self) -> ScanWindow
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScanWindow
[src]
impl PartialEq<ScanWindow> for ScanWindow
[src]
fn eq(&self, other: &ScanWindow) -> bool
[src]
fn ne(&self, other: &ScanWindow) -> bool
[src]
impl StructuralPartialEq for ScanWindow
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,