pub enum WhitelistPolicy {
None,
ByPattern(Vec<String>),
ByAddressRange(Vec<(usize, usize)>),
Custom,
}Expand description
Policy for whitelisting legitimate self-modifying code
Variants§
None
No whitelisting
ByPattern(Vec<String>)
Whitelist segments matching specific patterns (e.g., “.jit”, “.v8”)
ByAddressRange(Vec<(usize, usize)>)
Whitelist specific address ranges
Custom
Custom whitelist function
Trait Implementations§
Source§impl Clone for WhitelistPolicy
impl Clone for WhitelistPolicy
Source§fn clone(&self) -> WhitelistPolicy
fn clone(&self) -> WhitelistPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WhitelistPolicy
impl RefUnwindSafe for WhitelistPolicy
impl Send for WhitelistPolicy
impl Sync for WhitelistPolicy
impl Unpin for WhitelistPolicy
impl UnwindSafe for WhitelistPolicy
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