[][src]Struct pfctl::RedirectRuleBuilder

pub struct RedirectRuleBuilder { /* fields omitted */ }

Builder for RedirectRule.

Methods

impl RedirectRuleBuilder[src]

pub fn action<VALUE: Into<RedirectRuleAction>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn direction<VALUE: Into<Direction>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn quick<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn log<VALUE: Into<RuleLogSet>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn interface<VALUE: Into<Interface>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn proto<VALUE: Into<Proto>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn af<VALUE: Into<AddrFamily>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn from<VALUE: Into<Endpoint>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn to<VALUE: Into<Endpoint>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn redirect_to<VALUE: Into<Endpoint>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn build_internal(&self) -> Result<RedirectRule, String>[src]

Builds a new RedirectRule.

Errors

If a required field has not been initialized.

impl RedirectRuleBuilder[src]

pub fn build(&self) -> Result<RedirectRule>[src]

Trait Implementations

impl Default for RedirectRuleBuilder[src]

impl Clone for RedirectRuleBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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