pub struct WiFiRSSISource;Expand description
Entropy source that harvests WiFi RSSI and noise floor fluctuations.
On macOS, it attempts multiple methods to read the current RSSI:
networksetup -listallhardwareportsto discover the Wi-Fi device name, thenipconfig getsummary <device>to read RSSI/noise.- Fallback: the
airport -Icommand from Apple’s private framework.
The raw entropy is a combination of RSSI LSBs, successive RSSI deltas, noise floor LSBs, and measurement timing jitter.
No tunable parameters — automatically discovers the Wi-Fi device and selects the best available measurement method.
Implementations§
Trait Implementations§
Source§impl Default for WiFiRSSISource
impl Default for WiFiRSSISource
Source§impl EntropySource for WiFiRSSISource
impl EntropySource for WiFiRSSISource
Source§fn info(&self) -> &SourceInfo
fn info(&self) -> &SourceInfo
Source metadata.
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if this source can operate on the current machine.
Source§fn collect(&self, n_samples: usize) -> Vec<u8> ⓘ
fn collect(&self, n_samples: usize) -> Vec<u8> ⓘ
Collect raw entropy samples. Returns a
Vec<u8> of up to n_samples bytes.Auto Trait Implementations§
impl Freeze for WiFiRSSISource
impl RefUnwindSafe for WiFiRSSISource
impl Send for WiFiRSSISource
impl Sync for WiFiRSSISource
impl Unpin for WiFiRSSISource
impl UnsafeUnpin for WiFiRSSISource
impl UnwindSafe for WiFiRSSISource
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