pub struct EntropyState {
pub window: Vec<EntropyTurnState>,
pub rollbacks_pending: u32,
pub disarmed: bool,
pub last_alert_turn: Option<u32>,
}Fields§
§window: Vec<EntropyTurnState>Oldest to newest, bounded by the kernel entropy window.
rollbacks_pending: u32Rollbacks observed after the newest completed turn.
disarmed: boolThreshold watch hysteresis state.
last_alert_turn: Option<u32>Most recent alert turn, retained after re-arming for cooldown enforcement.
Trait Implementations§
Source§impl Clone for EntropyState
impl Clone for EntropyState
Source§fn clone(&self) -> EntropyState
fn clone(&self) -> EntropyState
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 EntropyState
impl Debug for EntropyState
Source§impl Default for EntropyState
impl Default for EntropyState
Source§fn default() -> EntropyState
fn default() -> EntropyState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntropyState
impl<'de> Deserialize<'de> for EntropyState
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
impl Eq for EntropyState
Source§impl PartialEq for EntropyState
impl PartialEq for EntropyState
Source§impl Serialize for EntropyState
impl Serialize for EntropyState
impl StructuralPartialEq for EntropyState
Auto Trait Implementations§
impl Freeze for EntropyState
impl RefUnwindSafe for EntropyState
impl Send for EntropyState
impl Sync for EntropyState
impl Unpin for EntropyState
impl UnsafeUnpin for EntropyState
impl UnwindSafe for EntropyState
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