pub struct Violation {
pub rule: &'static str,
pub fqn: &'static str,
pub measured: u32,
pub declared: u32,
}Expand description
A detected contract violation, in the play_launch rule-id vocabulary.
Fields§
§rule: &'static str"rate-hierarchy-runtime" | "max-age-runtime" |
"max-latency-runtime" | "deadline-miss-runtime".
fqn: &'static strViolating endpoint ref (from the spec’s fqn; the SC name for
deadline misses).
measured: u32Measured value. Unit is per-rule: milli-Hz for the rate rule, ms for age/latency, µs for deadline misses.
declared: u32Declared bound, same unit as measured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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