pub enum LoopConfigError {
RelayAmpOutOfRange {
value: f32,
},
CyclesCountMustBeAtLeastOne,
MrftDelayOutOfRange {
value: u32,
},
}Expand description
Why a LoopConfig failed LoopConfig::validate.
Variants§
RelayAmpOutOfRange
relay_amp_percent was non-finite (NaN/infinite) or outside
[LoopConfig::RELAY_AMP_PERCENT_MIN, LoopConfig::RELAY_AMP_PERCENT_MAX].
CyclesCountMustBeAtLeastOne
num_cycles_count was 0 – at least one full relay cycle is required to measure an
oscillation at all.
MrftDelayOutOfRange
mrft_delay_secs exceeded LoopConfig::MRFT_DELAY_SECS_MAX.
Trait Implementations§
Source§impl Clone for LoopConfigError
impl Clone for LoopConfigError
Source§fn clone(&self) -> LoopConfigError
fn clone(&self) -> LoopConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LoopConfigError
Source§impl Debug for LoopConfigError
impl Debug for LoopConfigError
Source§impl Display for LoopConfigError
impl Display for LoopConfigError
Source§impl Error for LoopConfigError
impl Error for LoopConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for LoopConfigError
impl PartialEq for LoopConfigError
Source§fn eq(&self, other: &LoopConfigError) -> bool
fn eq(&self, other: &LoopConfigError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoopConfigError
Auto Trait Implementations§
impl Freeze for LoopConfigError
impl RefUnwindSafe for LoopConfigError
impl Send for LoopConfigError
impl Sync for LoopConfigError
impl Unpin for LoopConfigError
impl UnsafeUnpin for LoopConfigError
impl UnwindSafe for LoopConfigError
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