#[non_exhaustive]pub enum TimingError {
UnitTimeout {
unit: UnitId,
elapsed_ms: u64,
max_ms: u64,
},
CycleTimeout {
elapsed_ms: u64,
max_ms: u64,
},
TimingProtocolViolation {
unit: UnitId,
},
}Expand description
Timing errors produced by the cycle timer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnitTimeout
Per-unit processing time exceeded δ_u^max.
CycleTimeout
Total cycle time exceeded Δt_max.
TimingProtocolViolation
end_unit called for a unit that had no start_unit.
Trait Implementations§
Source§impl Clone for TimingError
impl Clone for TimingError
Source§fn clone(&self) -> TimingError
fn clone(&self) -> TimingError
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 moreSource§impl Debug for TimingError
impl Debug for TimingError
Source§impl Display for TimingError
impl Display for TimingError
Source§impl Error for TimingError
impl Error for TimingError
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()
Auto Trait Implementations§
impl Freeze for TimingError
impl RefUnwindSafe for TimingError
impl Send for TimingError
impl Sync for TimingError
impl Unpin for TimingError
impl UnsafeUnpin for TimingError
impl UnwindSafe for TimingError
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