pub struct Allowlist { /* private fields */ }Expand description
A set of reviewed executable paths eligible to receive high/prod
injection. An empty allowlist refuses every high/prod command (fails
safe); low/medium non-prod injection never consults it (§5.1).
Implementations§
Source§impl Allowlist
impl Allowlist
Sourcepub fn from_paths<I, P>(paths: I) -> Self
pub fn from_paths<I, P>(paths: I) -> Self
Build an allowlist from a set of reviewed executable paths.
Sourcepub fn allow(&mut self, path: impl Into<PathBuf>)
pub fn allow(&mut self, path: impl Into<PathBuf>)
Add one reviewed executable to the allowlist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Allowlist
impl RefUnwindSafe for Allowlist
impl Send for Allowlist
impl Sync for Allowlist
impl Unpin for Allowlist
impl UnsafeUnpin for Allowlist
impl UnwindSafe for Allowlist
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