pub struct SecurityManager { /* private fields */ }Expand description
Security manager for plugin sandboxing
Implementations§
Source§impl SecurityManager
impl SecurityManager
pub fn new(sandbox_enabled: bool) -> Self
pub fn validate_plugin_security(&self, plugin_name: &str) -> SklResult<()>
pub fn scan_plugin(&self, plugin_data: &[u8]) -> SklResult<()>
pub fn generate_report(&self, plugin_name: &str) -> SecurityReport
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecurityManager
impl RefUnwindSafe for SecurityManager
impl Send for SecurityManager
impl Sync for SecurityManager
impl Unpin for SecurityManager
impl UnwindSafe for SecurityManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more