pub struct ScanWindowBuilder { /* private fields */ }
Expand description
Intermediate builder for the ScanWindow
.
Implementations§
Source§impl ScanWindowBuilder
impl ScanWindowBuilder
Sourcepub fn open_for(&self, window: Duration) -> Result<ScanWindow, ScanWindowError>
pub fn open_for(&self, window: Duration) -> Result<ScanWindow, ScanWindowError>
Completes building a ScanWindow. The scan window has the given window.
§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.
- ScanWindowError::Inverted if the window is longer than the interval.
Auto Trait Implementations§
impl Freeze for ScanWindowBuilder
impl RefUnwindSafe for ScanWindowBuilder
impl Send for ScanWindowBuilder
impl Sync for ScanWindowBuilder
impl Unpin for ScanWindowBuilder
impl UnwindSafe for ScanWindowBuilder
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