pub struct NetworkSecurityManager { /* private fields */ }Expand description
Network security manager
Implementations§
Source§impl NetworkSecurityManager
impl NetworkSecurityManager
Sourcepub fn check_message(&mut self, npdu: &Npdu) -> bool
pub fn check_message(&mut self, npdu: &Npdu) -> bool
Check if a message should be accepted
Sourcepub fn allow_network(&mut self, network: u16)
pub fn allow_network(&mut self, network: u16)
Add allowed network
Sourcepub fn block_network(&mut self, network: u16)
pub fn block_network(&mut self, network: u16)
Block a network
Sourcepub fn set_allow_broadcasts(&mut self, allow: bool)
pub fn set_allow_broadcasts(&mut self, allow: bool)
Set broadcast permission
Sourcepub fn get_stats(&self) -> &SecurityStatistics
pub fn get_stats(&self) -> &SecurityStatistics
Get security statistics
Sourcepub fn reset_stats(&mut self)
pub fn reset_stats(&mut self)
Reset security statistics
Trait Implementations§
Source§impl Debug for NetworkSecurityManager
impl Debug for NetworkSecurityManager
Auto Trait Implementations§
impl Freeze for NetworkSecurityManager
impl RefUnwindSafe for NetworkSecurityManager
impl Send for NetworkSecurityManager
impl Sync for NetworkSecurityManager
impl Unpin for NetworkSecurityManager
impl UnsafeUnpin for NetworkSecurityManager
impl UnwindSafe for NetworkSecurityManager
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