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
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 for ScanWindowError
impl PartialEq for ScanWindowError
impl Copy for ScanWindowError
impl StructuralPartialEq for ScanWindowError
Auto Trait Implementations§
impl Freeze for ScanWindowError
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