pub struct Evidence {
pub measurement: Measurement,
pub window: TimeWindow,
}Expand description
One raw measurement plus the window it was measured over (§11.3).
Fields§
§measurement: MeasurementThe raw measurement. Never a derived verdict, always a number.
window: TimeWindowThe time window measurement covers.
Implementations§
Source§impl Evidence
impl Evidence
Sourcepub const fn new(measurement: Measurement, window: TimeWindow) -> Self
pub const fn new(measurement: Measurement, window: TimeWindow) -> Self
Builds evidence covering an explicit window.
Sourcepub const fn current(measurement: Measurement) -> Self
pub const fn current(measurement: Measurement) -> Self
Builds evidence read from the snapshot being evaluated.
Trait Implementations§
impl Copy for Evidence
impl StructuralPartialEq for Evidence
Auto Trait Implementations§
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
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