pub trait FirewallBackend: Sized{
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§
Sourcetype Defaults: Debug + DeserializeOwned
type Defaults: Debug + DeserializeOwned
Associated type representing the firewall backend defaults/configuration.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".