pub struct SecurityManager { /* private fields */ }Expand description
Security manager that handles port allowlist checks.
If the allowlist is empty, all ports are allowed.
Implementations§
Source§impl SecurityManager
impl SecurityManager
Sourcepub fn from_patterns<I: IntoIterator>(patterns: I) -> Self
pub fn from_patterns<I: IntoIterator>(patterns: I) -> Self
Create a security manager from explicit glob pattern strings. Invalid patterns are silently ignored (logged as warnings).
Sourcepub fn is_port_allowed(&self, port: &str) -> bool
pub fn is_port_allowed(&self, port: &str) -> bool
Check if a port matches the allowlist. Empty allowlist = allow all.
Sourcepub fn allowlist_summary(&self) -> String
pub fn allowlist_summary(&self) -> String
Human-readable summary of allowlist patterns for error messages.
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 UnsafeUnpin 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