pub enum FixedClockError {
InvalidTickRate {
hz: f64,
},
ZeroCatchUpBudget,
}Expand description
Invalid configuration supplied to FixedClock::try_new.
use ferravex_core::{FixedClock, FixedClockError};
let error = FixedClock::try_new(60.0, 0).unwrap_err();
assert_eq!(error, FixedClockError::ZeroCatchUpBudget);
assert!(error.to_string().contains("at least 1"));Variants§
InvalidTickRate
The rate must be finite and within the inclusive range 1..=1000 Hz.
ZeroCatchUpBudget
At least one simulation step must be permitted per frame.
Trait Implementations§
Source§impl Clone for FixedClockError
impl Clone for FixedClockError
Source§fn clone(&self) -> FixedClockError
fn clone(&self) -> FixedClockError
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 FixedClockError
impl Debug for FixedClockError
Source§impl Display for FixedClockError
impl Display for FixedClockError
Source§impl Error for FixedClockError
impl Error for FixedClockError
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 FixedClockError
impl PartialEq for FixedClockError
impl Copy for FixedClockError
impl StructuralPartialEq for FixedClockError
Auto Trait Implementations§
impl Freeze for FixedClockError
impl RefUnwindSafe for FixedClockError
impl Send for FixedClockError
impl Sync for FixedClockError
impl Unpin for FixedClockError
impl UnwindSafe for FixedClockError
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