pub struct SourceInfo {
pub name: &'static str,
pub description: &'static str,
pub physics: &'static str,
pub category: SourceCategory,
pub platform_requirements: &'static [&'static str],
pub entropy_rate_estimate: f64,
pub composite: bool,
}Expand description
Metadata about an entropy source.
Each source declares its name, a human-readable description, a physics explanation of how it harvests entropy, its category, platform requirements, and an estimated entropy rate in bits per sample.
Fields§
§name: &'static strUnique identifier (e.g. "clock_jitter").
description: &'static strOne-line human-readable description.
physics: &'static strPhysics explanation of the entropy mechanism.
category: SourceCategorySource category for classification.
platform_requirements: &'static [&'static str]Platform requirements (e.g. ["macos"]).
entropy_rate_estimate: f64Estimated entropy rate in bits per sample.
composite: boolWhether this is a composite source (combines multiple standalone sources).
Composite sources don’t measure a single independent entropy domain. They combine or interleave other sources. The CLI displays them separately from standalone sources.
Trait Implementations§
Source§impl Clone for SourceInfo
impl Clone for SourceInfo
Source§fn clone(&self) -> SourceInfo
fn clone(&self) -> SourceInfo
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 SourceInfo
impl RefUnwindSafe for SourceInfo
impl Send for SourceInfo
impl Sync for SourceInfo
impl Unpin for SourceInfo
impl UnwindSafe for SourceInfo
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