endpoint_sec/
mute.rs

1//! Mute types.
2
3use std::ffi::OsString;
4
5use endpoint_sec_sys::{es_event_type_t, es_mute_path_type_t};
6
7use crate::AuditToken;
8
9/// See [`endpoint_sec_sys::es_muted_path_t`]
10#[doc(alias = "es_muted_path_t")]
11#[derive(Debug, Clone)]
12pub struct MutedPath {
13    /// Indicates if the path is a prefix or a literal
14    pub ty: es_mute_path_type_t,
15    /// Event types for which the path is muted
16    pub events: Vec<es_event_type_t>,
17    /// Muted path
18    pub path: OsString,
19}
20
21static_assertions::assert_impl_all!(MutedPath: Send);
22
23/// See [`endpoint_sec_sys::es_muted_process_t`]
24#[doc(alias = "es_muted_process_t")]
25#[derive(Debug, Clone)]
26pub struct MutedProcess {
27    /// Audit token of the muted process
28    pub audit_token: AuditToken,
29    /// Events for which the process is muted
30    pub events: Vec<es_event_type_t>,
31}
32
33static_assertions::assert_impl_all!(MutedProcess: Send);