pub struct SourceState {
pub source: Box<dyn EntropySource>,
pub weight: f64,
pub total_bytes: u64,
pub failures: u64,
pub last_entropy: f64,
pub last_min_entropy: f64,
pub last_collect_time: Duration,
pub healthy: bool,
}Expand description
Runtime state for a registered source in the pool.
Fields§
§source: Box<dyn EntropySource>§weight: f64§total_bytes: u64§failures: u64§last_entropy: f64§last_min_entropy: f64§last_collect_time: Duration§healthy: boolImplementations§
Source§impl SourceState
impl SourceState
pub fn new(source: Box<dyn EntropySource>, weight: f64) -> Self
Auto Trait Implementations§
impl Freeze for SourceState
impl !RefUnwindSafe for SourceState
impl Send for SourceState
impl Sync for SourceState
impl Unpin for SourceState
impl !UnwindSafe for SourceState
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