pub struct EntropyWatchPolicy {
pub enabled: Option<bool>,
pub threshold_ppm: Option<Ppm>,
pub hysteresis_ppm: Option<Ppm>,
pub cooldown_turns: Option<u32>,
pub notify_model: Option<bool>,
}Expand description
Entropy watch. The three historical f64 knobs are fixed-point ppm (§7.1.1, §13.3): a
threshold that differs by one ULP between languages is a different kernel decision.
Fields§
§enabled: Option<bool>§threshold_ppm: Option<Ppm>§hysteresis_ppm: Option<Ppm>Re-arm only once the score falls below threshold - hysteresis (anti-flap).
cooldown_turns: Option<u32>§notify_model: Option<bool>Trait Implementations§
Source§impl Clone for EntropyWatchPolicy
impl Clone for EntropyWatchPolicy
Source§fn clone(&self) -> EntropyWatchPolicy
fn clone(&self) -> EntropyWatchPolicy
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 EntropyWatchPolicy
impl Debug for EntropyWatchPolicy
Source§impl Default for EntropyWatchPolicy
impl Default for EntropyWatchPolicy
Source§fn default() -> EntropyWatchPolicy
fn default() -> EntropyWatchPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntropyWatchPolicy
impl<'de> Deserialize<'de> for EntropyWatchPolicy
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 EntropyWatchPolicy
impl PartialEq for EntropyWatchPolicy
Source§impl Serialize for EntropyWatchPolicy
impl Serialize for EntropyWatchPolicy
impl StructuralPartialEq for EntropyWatchPolicy
Auto Trait Implementations§
impl Freeze for EntropyWatchPolicy
impl RefUnwindSafe for EntropyWatchPolicy
impl Send for EntropyWatchPolicy
impl Sync for EntropyWatchPolicy
impl Unpin for EntropyWatchPolicy
impl UnsafeUnpin for EntropyWatchPolicy
impl UnwindSafe for EntropyWatchPolicy
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