pub struct Violation<S: Storage = Heap> {
pub at: Tick,
pub level: Level,
pub bound: Bound,
pub contributors: S::List<ActivityId>,
}Expand description
The first tick at which a timeline’s level is out of bounds, and why.
The contributor list uses the storage S of the timeline that reported it, so explaining a
violation of a Fixed timeline does not allocate.
Fields§
§at: TickThe earliest tick at which the level is out of bounds.
All impacts at this tick are already applied.
level: LevelThe level at at.
bound: BoundThe bound that is broken.
contributors: S::List<ActivityId>The activities whose net effect in force at at pushes the level towards
the broken bound.
Net negative for Bound::BelowMin and Bound::BelowTarget, net positive for
Bound::AboveMax. Effects are
netted per activity first. Sorted ascending, without duplicates. Empty when the initial
level alone breaks the bound.
Trait Implementations§
impl<S: Eq + Storage> Eq for Violation<S>
impl<S: PartialEq + Storage> StructuralPartialEq for Violation<S>
Auto Trait Implementations§
impl<S> Forget for Violation<S>
impl<S> Freeze for Violation<S>
impl<S> Move for Violation<S>
impl<S> RefUnwindSafe for Violation<S>
impl<S> Send for Violation<S>
impl<S> Sync for Violation<S>
impl<S> Unpin for Violation<S>
impl<S> UnsafeUnpin for Violation<S>
impl<S> UnwindSafe for Violation<S>
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