pub enum AdvertisingIntervalError {
TooShort(Duration),
TooLong(Duration),
Inverted(Duration, Duration),
NoRange,
}
Expand description
Potential errors that can occur when specifying an AdvertisingInterval
.
Variants§
TooShort(Duration)
The minimum value was too short. Includes the invalid value.
TooLong(Duration)
The maximum value was too long. Includes the invalid value.
Inverted(Duration, Duration)
The minimum value was greater than the maximum value. Includes the provided minimum and value, respectively.
NoRange
The advertising interval was not given a range, and the type was not ConnectableDirectedHighDutyCycle.
Trait Implementations§
Source§impl Clone for AdvertisingIntervalError
impl Clone for AdvertisingIntervalError
Source§fn clone(&self) -> AdvertisingIntervalError
fn clone(&self) -> AdvertisingIntervalError
Returns a duplicate 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 AdvertisingIntervalError
impl Debug for AdvertisingIntervalError
Source§impl PartialEq for AdvertisingIntervalError
impl PartialEq for AdvertisingIntervalError
impl Copy for AdvertisingIntervalError
impl StructuralPartialEq for AdvertisingIntervalError
Auto Trait Implementations§
impl Freeze for AdvertisingIntervalError
impl RefUnwindSafe for AdvertisingIntervalError
impl Send for AdvertisingIntervalError
impl Sync for AdvertisingIntervalError
impl Unpin for AdvertisingIntervalError
impl UnwindSafe for AdvertisingIntervalError
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