pub struct ThrottleRecord {
pub last_fired_epoch: u64,
pub last_surfaced_metric: f64,
}Expand description
Per-signal throttle bookkeeping.
Fields§
§last_fired_epoch: u64Unix epoch seconds the signal last surfaced (0 if never).
last_surfaced_metric: f64The metric value at the last surfacing (for material-change re-arm).
Trait Implementations§
Source§impl Clone for ThrottleRecord
impl Clone for ThrottleRecord
Source§fn clone(&self) -> ThrottleRecord
fn clone(&self) -> ThrottleRecord
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 ThrottleRecord
impl Debug for ThrottleRecord
Source§impl<'de> Deserialize<'de> for ThrottleRecord
impl<'de> Deserialize<'de> for ThrottleRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThrottleRecord
impl PartialEq for ThrottleRecord
Source§fn eq(&self, other: &ThrottleRecord) -> bool
fn eq(&self, other: &ThrottleRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThrottleRecord
impl Serialize for ThrottleRecord
impl StructuralPartialEq for ThrottleRecord
Auto Trait Implementations§
impl Freeze for ThrottleRecord
impl RefUnwindSafe for ThrottleRecord
impl Send for ThrottleRecord
impl Sync for ThrottleRecord
impl Unpin for ThrottleRecord
impl UnsafeUnpin for ThrottleRecord
impl UnwindSafe for ThrottleRecord
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