pub struct PassiveMonitorOptions {
pub scan_duration: Duration,
pub scan_interval: Duration,
pub channel_capacity: usize,
pub deduplicate: bool,
pub max_reading_age: Duration,
pub device_filter: Vec<String>,
}Expand description
Options for passive monitoring.
Fields§
§scan_duration: DurationHow long to scan between processing cycles.
scan_interval: DurationDelay between scan cycles.
channel_capacity: usizeChannel capacity for readings.
deduplicate: boolOnly emit readings when values change (deduplicate).
max_reading_age: DurationMaximum age of cached readings before re-emitting (if deduplicate is true).
device_filter: Vec<String>Filter to only these device IDs (empty = all Aranet devices).
Implementations§
Source§impl PassiveMonitorOptions
impl PassiveMonitorOptions
Sourcepub fn scan_duration(self, duration: Duration) -> Self
pub fn scan_duration(self, duration: Duration) -> Self
Set the scan duration.
Sourcepub fn scan_interval(self, interval: Duration) -> Self
pub fn scan_interval(self, interval: Duration) -> Self
Set the interval between scan cycles.
Sourcepub fn deduplicate(self, enable: bool) -> Self
pub fn deduplicate(self, enable: bool) -> Self
Enable or disable deduplication.
Sourcepub fn filter_devices(self, device_ids: Vec<String>) -> Self
pub fn filter_devices(self, device_ids: Vec<String>) -> Self
Filter to specific device IDs.
Trait Implementations§
Source§impl Clone for PassiveMonitorOptions
impl Clone for PassiveMonitorOptions
Source§fn clone(&self) -> PassiveMonitorOptions
fn clone(&self) -> PassiveMonitorOptions
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 moreSource§impl Debug for PassiveMonitorOptions
impl Debug for PassiveMonitorOptions
Auto Trait Implementations§
impl Freeze for PassiveMonitorOptions
impl RefUnwindSafe for PassiveMonitorOptions
impl Send for PassiveMonitorOptions
impl Sync for PassiveMonitorOptions
impl Unpin for PassiveMonitorOptions
impl UnwindSafe for PassiveMonitorOptions
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