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 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 AdvertisingIntervalError
impl Debug for AdvertisingIntervalError
source§impl PartialEq<AdvertisingIntervalError> for AdvertisingIntervalError
impl PartialEq<AdvertisingIntervalError> for AdvertisingIntervalError
source§fn eq(&self, other: &AdvertisingIntervalError) -> bool
fn eq(&self, other: &AdvertisingIntervalError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for AdvertisingIntervalError
impl StructuralPartialEq for AdvertisingIntervalError
Auto Trait Implementations§
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