pub struct FiveHourWindow { /* private fields */ }Expand description
Active-block window surfaced to segments under JSONL fallback.
§Invariants
ends_at()is derived asstart + 5h, so the “block lasts 5 hours” invariant is structural rather than prose — the window cannot drift from its anchor after construction.startis expected to be UTC-floor-to-hour in production, matching [FiveHourBlock::start] from the aggregator. The cascade honors this precondition;FiveHourWindow::newitself does not enforce it because legitimate test fixtures pass mid-hour starts to exercise minute-level countdown rendering that wouldn’t occur with a real (hour-aligned) aggregator output.
Trait Implementations§
Source§impl Clone for FiveHourWindow
impl Clone for FiveHourWindow
Source§fn clone(&self) -> FiveHourWindow
fn clone(&self) -> FiveHourWindow
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 FiveHourWindow
impl Debug for FiveHourWindow
Source§impl PartialEq for FiveHourWindow
impl PartialEq for FiveHourWindow
Source§fn eq(&self, other: &FiveHourWindow) -> bool
fn eq(&self, other: &FiveHourWindow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FiveHourWindow
Auto Trait Implementations§
impl Freeze for FiveHourWindow
impl RefUnwindSafe for FiveHourWindow
impl Send for FiveHourWindow
impl Sync for FiveHourWindow
impl Unpin for FiveHourWindow
impl UnsafeUnpin for FiveHourWindow
impl UnwindSafe for FiveHourWindow
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