Enum stm32wb_hci::types::ScanWindowError
source · pub enum ScanWindowError {
TooShort(Duration),
TooLong(Duration),
Inverted {
interval: Duration,
window: Duration,
},
}Expand description
Types of errors that can occure when creating a ScanWindow.
Variants§
TooShort(Duration)
The duration is too short. Both the interval and duration must be at least 2.5 ms. Includes the invalid duration.
TooLong(Duration)
The duration is too long. Both the interval and duration must be no more than 10.24 seconds. Includes the invalid duration.
Inverted
Fields
The interval and window are inverted. That is, the interval is shorter than the window.
Trait Implementations§
source§impl Clone for ScanWindowError
impl Clone for ScanWindowError
source§fn clone(&self) -> ScanWindowError
fn clone(&self) -> ScanWindowError
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 ScanWindowError
impl Debug for ScanWindowError
source§impl PartialEq<ScanWindowError> for ScanWindowError
impl PartialEq<ScanWindowError> for ScanWindowError
source§fn eq(&self, other: &ScanWindowError) -> bool
fn eq(&self, other: &ScanWindowError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ScanWindowError
impl StructuralPartialEq for ScanWindowError
Auto Trait Implementations§
impl RefUnwindSafe for ScanWindowError
impl Send for ScanWindowError
impl Sync for ScanWindowError
impl Unpin for ScanWindowError
impl UnwindSafe for ScanWindowError
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