pub struct ThrottleEntry {
pub last_step: usize,
pub content_hash: u64,
}Expand description
Per-key throttle entry: tracks when a context message was last injected.
Fields§
§last_step: usizeStep number when this key was last injected.
content_hash: u64Hash of the content at last injection (re-inject if content changes).
Trait Implementations§
Source§impl Clone for ThrottleEntry
impl Clone for ThrottleEntry
Source§fn clone(&self) -> ThrottleEntry
fn clone(&self) -> ThrottleEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ThrottleEntry
impl Debug for ThrottleEntry
Source§impl Default for ThrottleEntry
impl Default for ThrottleEntry
Source§fn default() -> ThrottleEntry
fn default() -> ThrottleEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThrottleEntry
impl<'de> Deserialize<'de> for ThrottleEntry
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 ThrottleEntry
impl PartialEq for ThrottleEntry
Source§impl Serialize for ThrottleEntry
impl Serialize for ThrottleEntry
impl Eq for ThrottleEntry
impl StructuralPartialEq for ThrottleEntry
Auto Trait Implementations§
impl Freeze for ThrottleEntry
impl RefUnwindSafe for ThrottleEntry
impl Send for ThrottleEntry
impl Sync for ThrottleEntry
impl Unpin for ThrottleEntry
impl UnsafeUnpin for ThrottleEntry
impl UnwindSafe for ThrottleEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.