pub(crate) struct ExecPolicy {
pub(crate) path: &'static str,
pub(crate) allowlist: Vec<String>,
pub(crate) fingerprint: u64,
}Fields§
§path: &'static str§allowlist: Vec<String>§fingerprint: u64Implementations§
Source§impl ExecPolicy
impl ExecPolicy
Sourcepub(crate) fn fingerprint(items: &[String]) -> u64
pub(crate) fn fingerprint(items: &[String]) -> u64
Implements fingerprint.
Sourcepub(crate) fn is_allowed(&self, path: &str) -> bool
pub(crate) fn is_allowed(&self, path: &str) -> bool
Returns whether allowed.
Auto Trait Implementations§
impl Freeze for ExecPolicy
impl RefUnwindSafe for ExecPolicy
impl Send for ExecPolicy
impl Sync for ExecPolicy
impl Unpin for ExecPolicy
impl UnsafeUnpin for ExecPolicy
impl UnwindSafe for ExecPolicy
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