pub enum ConditionError {
ZeroPeriod,
PeriodNotPowerOfTwo {
period: u64,
},
PhaseOutOfRange {
period: u64,
phase: u64,
},
}Expand description
Invalid fixed-step cadence configuration.
Variants§
ZeroPeriod
Fixed-step cadence period must be nonzero.
PeriodNotPowerOfTwo
Period must be a power of two for bitmask indexing.
PhaseOutOfRange
Phase must be strictly less than the period.
Trait Implementations§
Source§impl Clone for ConditionError
impl Clone for ConditionError
Source§fn clone(&self) -> ConditionError
fn clone(&self) -> ConditionError
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 ConditionError
Source§impl Debug for ConditionError
impl Debug for ConditionError
Source§impl Display for ConditionError
impl Display for ConditionError
impl Eq for ConditionError
Source§impl Error for ConditionError
Available on crate feature std only.
impl Error for ConditionError
Available on crate feature
std only.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 ConditionError
impl PartialEq for ConditionError
impl StructuralPartialEq for ConditionError
Auto Trait Implementations§
impl Freeze for ConditionError
impl RefUnwindSafe for ConditionError
impl Send for ConditionError
impl Sync for ConditionError
impl Unpin for ConditionError
impl UnsafeUnpin for ConditionError
impl UnwindSafe for ConditionError
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