[][src]Struct dfw::process::ProcessContext

pub struct ProcessContext<'a, B> where
    B: FirewallBackend,
    DFW<B>: Process<B>, 
{ /* fields omitted */ }

Enclosing struct to manage rule processing.

Implementations

impl<'a, B> ProcessContext<'a, B> where
    B: FirewallBackend,
    DFW<B>: Process<B>, 
[src]

pub fn new(
    docker: &'a Docker,
    dfw: &'a DFW<B>,
    processing_options: &'a ProcessingOptions,
    logger: &'a Logger,
    dry_run: bool
) -> Result<ProcessContext<'a, B>>
[src]

Create a new instance of ProcessDFW for rule processing.

pub fn process(&mut self) -> Result<()>[src]

Start the processing using the configuration given at creation.

Auto Trait Implementations

impl<'a, B> !RefUnwindSafe for ProcessContext<'a, B>

impl<'a, B> Send for ProcessContext<'a, B> where
    <B as FirewallBackend>::Defaults: Sync

impl<'a, B> Sync for ProcessContext<'a, B> where
    <B as FirewallBackend>::Defaults: Sync

impl<'a, B> Unpin for ProcessContext<'a, B>

impl<'a, B> !UnwindSafe for ProcessContext<'a, B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,