pub struct DeveloperAllowlist { /* private fields */ }Expand description
Developer-aware allowlist that auto-detects toolchains.
Implementations§
Source§impl DeveloperAllowlist
impl DeveloperAllowlist
pub fn new(config: AllowlistConfig) -> Self
Sourcepub fn detect_dev_environments(&self)
pub fn detect_dev_environments(&self)
Scan the filesystem for installed dev environments and populate allowlists.
Sourcepub fn should_skip_path(&self, path: &Path) -> bool
pub fn should_skip_path(&self, path: &Path) -> bool
Check whether a file path should be skipped by scanners.
Sourcepub fn should_skip_process(&self, name: &str) -> bool
pub fn should_skip_process(&self, name: &str) -> bool
Check whether a process name should be skipped by the process monitor.
Sourcepub fn path_pattern_count(&self) -> usize
pub fn path_pattern_count(&self) -> usize
Get the number of path patterns in the allowlist.
Sourcepub fn process_count(&self) -> usize
pub fn process_count(&self) -> usize
Get the number of allowed process names.
Auto Trait Implementations§
impl !Freeze for DeveloperAllowlist
impl !RefUnwindSafe for DeveloperAllowlist
impl Send for DeveloperAllowlist
impl Sync for DeveloperAllowlist
impl Unpin for DeveloperAllowlist
impl UnsafeUnpin for DeveloperAllowlist
impl UnwindSafe for DeveloperAllowlist
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