pub struct TickDecision {
pub process: Option<TickEvent>,
pub dropped_count: u64,
pub emit_tear: bool,
pub tear_evidence: Option<(f64, f64)>,
}Expand description
The result of applying a tick policy to a queue of pending ticks.
Fields§
§process: Option<TickEvent>The tick to actually process (if any).
dropped_count: u64How many ticks were dropped or coalesced.
emit_tear: boolWhether a topological tear should be emitted.
tear_evidence: Option<(f64, f64)>The tear evidence (μ = dropped, λ = latency_nanos), if tearing.
Implementations§
Source§impl TickDecision
impl TickDecision
Sourcepub fn process_one(tick: TickEvent) -> Self
pub fn process_one(tick: TickEvent) -> Self
Process a single tick with no drops.
Trait Implementations§
Source§impl Clone for TickDecision
impl Clone for TickDecision
Source§impl Debug for TickDecision
impl Debug for TickDecision
Source§impl PartialEq for TickDecision
impl PartialEq for TickDecision
impl StructuralPartialEq for TickDecision
Auto Trait Implementations§
impl Freeze for TickDecision
impl RefUnwindSafe for TickDecision
impl Send for TickDecision
impl Sync for TickDecision
impl Unpin for TickDecision
impl UnsafeUnpin for TickDecision
impl UnwindSafe for TickDecision
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