pub struct SourceHealth {
pub name: String,
pub healthy: bool,
pub bytes: u64,
pub entropy: f64,
pub min_entropy: f64,
pub time: f64,
pub failures: u64,
}Expand description
Health status of a single entropy source.
Fields§
§name: StringSource name.
healthy: boolWhether the source is currently healthy (entropy > 1.0 bits/byte).
bytes: u64Total bytes collected from this source.
entropy: f64Shannon entropy of the last collection (bits per byte, max 8.0).
min_entropy: f64Min-entropy of the last collection (bits per byte, max 8.0). More conservative than Shannon.
time: f64Time taken for the last collection in seconds.
failures: u64Number of collection failures.
Trait Implementations§
Source§impl Clone for SourceHealth
impl Clone for SourceHealth
Source§fn clone(&self) -> SourceHealth
fn clone(&self) -> SourceHealth
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 moreAuto Trait Implementations§
impl Freeze for SourceHealth
impl RefUnwindSafe for SourceHealth
impl Send for SourceHealth
impl Sync for SourceHealth
impl Unpin for SourceHealth
impl UnwindSafe for SourceHealth
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