pub struct NftablesManager { /* private fields */ }Expand description
Manages NFTables rules based on network state.
Implementations§
Source§impl NftablesManager
impl NftablesManager
pub fn new(config: AppConfig) -> Self
Sourcepub fn load_rules(&mut self) -> Result<()>
pub fn load_rules(&mut self) -> Result<()>
Loads rule templates or configurations. Placeholder for now.
Sourcepub async fn apply_rules(&self, state: &NetworkState) -> Result<()>
pub async fn apply_rules(&self, state: &NetworkState) -> Result<()>
Applies NFTables rules based on the current network state. Placeholder implementation - logs the intended action.
Auto Trait Implementations§
impl Freeze for NftablesManager
impl RefUnwindSafe for NftablesManager
impl Send for NftablesManager
impl Sync for NftablesManager
impl Unpin for NftablesManager
impl UnwindSafe for NftablesManager
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