pub struct SecurityConfig {
pub enable_stack_canaries: bool,
pub enable_guard_pages: bool,
pub enable_cfi: bool,
pub enable_thread_isolation: bool,
pub enable_aslr: bool,
pub enable_audit_logging: bool,
pub use_secure_rng: bool,
pub panic_on_violation: bool,
}
Expand description
Global security configuration.
Fields§
§enable_stack_canaries: bool
Enable stack canaries for overflow detection
enable_guard_pages: bool
Enable stack guard pages
enable_cfi: bool
Enable control flow integrity
enable_thread_isolation: bool
Enable thread isolation/sandboxing
enable_aslr: bool
Enable ASLR for thread stacks
enable_audit_logging: bool
Enable comprehensive audit logging
use_secure_rng: bool
Cryptographically secure RNG for security features
panic_on_violation: bool
Panic on security violations
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
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 moreSource§impl Debug for SecurityConfig
impl Debug for SecurityConfig
Source§impl Default for SecurityConfig
impl Default for SecurityConfig
impl Copy for SecurityConfig
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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