pub struct RwhodConfig {
pub enable: bool,
pub ignore_list_path: Option<PathBuf>,
pub interfaces: Option<HashSet<String>>,
pub send_interval_seconds: Option<u64>,
pub max_status_entries: Option<usize>,
pub realtime_updates: Option<bool>,
}Fields§
§enable: boolEnable or disable the rwhod server functionality.
ignore_list_path: Option<PathBuf>Path to the ignore list for users that should be hidden from rwhod.
interfaces: Option<HashSet<String>>Network interfaces to send rwhod packets on (e.g., [“eth0”, “wlan0”]).
If left as None, the server will send on all relevant interfaces it can find.
send_interval_seconds: Option<u64>Interval between rwhod status packet broadcasts.
If left as None, defaults to 60 seconds.
max_status_entries: Option<usize>Maximum number of distinct hosts to keep rwhod status records for at the same time. Once at capacity, the least recently updated record is evicted to make room for a newly-seen host.
If left as None, defaults to 4096.
realtime_updates: Option<bool>Whether to react to Linux audit log activity (e.g. logins/logouts)
and push a status update immediately, instead of only on the
regular send_interval_seconds interval.
If left as None, defaults to false.
Implementations§
Source§impl RwhodConfig
impl RwhodConfig
Sourcepub fn send_interval(&self) -> Duration
pub fn send_interval(&self) -> Duration
Resolves Self::send_interval_seconds into a concrete interval.
Sourcepub fn max_status_entries(&self) -> usize
pub fn max_status_entries(&self) -> usize
Resolves Self::max_status_entries into a concrete limit.
Sourcepub fn realtime_updates_enabled(&self) -> bool
pub fn realtime_updates_enabled(&self) -> bool
Resolves Self::realtime_updates into a concrete flag.
Trait Implementations§
Source§impl Clone for RwhodConfig
impl Clone for RwhodConfig
Source§fn clone(&self) -> RwhodConfig
fn clone(&self) -> RwhodConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RwhodConfig
impl Debug for RwhodConfig
Source§impl<'de> Deserialize<'de> for RwhodConfig
impl<'de> Deserialize<'de> for RwhodConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RwhodConfig
Source§impl PartialEq for RwhodConfig
impl PartialEq for RwhodConfig
Source§impl Serialize for RwhodConfig
impl Serialize for RwhodConfig
impl StructuralPartialEq for RwhodConfig
Auto Trait Implementations§
impl Freeze for RwhodConfig
impl RefUnwindSafe for RwhodConfig
impl Send for RwhodConfig
impl Sync for RwhodConfig
impl Unpin for RwhodConfig
impl UnsafeUnpin for RwhodConfig
impl UnwindSafe for RwhodConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more