Skip to main content

FirewallBackend

Trait FirewallBackend 

Source
pub trait FirewallBackend: Sized
where DFW<Self>: Process<Self>,
{ type Rule; type Defaults: Debug + DeserializeOwned; // Required method fn apply( rules: Vec<Self::Rule>, ctx: &ProcessContext<'_, Self>, ) -> Result<()>; }
Expand description

This trait is used to distinguish between different firewall backends.

To add a new firewall-backend create an empty struct implementing this trait.

Required Associated Types§

Source

type Rule

Associated type identifying the rule-type returned.

Source

type Defaults: Debug + DeserializeOwned

Associated type representing the firewall backend defaults/configuration.

Required Methods§

Source

fn apply(rules: Vec<Self::Rule>, ctx: &ProcessContext<'_, Self>) -> Result<()>

Apply the processed rules.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§