pub enum Line<'input> {
    Server {
        name: &'input str,
        addr: AddressRef<'input>,
        option: Option<&'input str>,
        comment: Option<&'input str>,
    },
    Option {
        keyword: &'input str,
        value: Option<&'input str>,
        comment: Option<&'input str>,
    },
    Bind {
        addr: AddressRef<'input>,
        value: Option<&'input str>,
        comment: Option<&'input str>,
    },
    Acl {
        name: &'input str,
        rule: Option<&'input str>,
        comment: Option<&'input str>,
    },
    Backend {
        name: &'input str,
        modifier: Option<BackendModifier>,
        condition: Option<&'input str>,
        comment: Option<&'input str>,
    },
    Group {
        name: &'input str,
        users: Vec<&'input str>,
        comment: Option<&'input str>,
    },
    User {
        name: &'input str,
        password: PasswordRef<'input>,
        groups: Vec<&'input str>,
        comment: Option<&'input str>,
    },
    SysUser {
        name: &'input str,
    },
    Config {
        key: &'input str,
        value: Option<&'input str>,
        comment: Option<&'input str>,
    },
    Comment(&'input str),
    Blank,
}
Expand description

Various lines that can occure in config sections

Variants§

§

Server

Fields

§name: &'input str
§addr: AddressRef<'input>
§option: Option<&'input str>
§comment: Option<&'input str>
§

Option

Fields

§keyword: &'input str
§value: Option<&'input str>
§comment: Option<&'input str>
§

Bind

Fields

§addr: AddressRef<'input>
§value: Option<&'input str>
§comment: Option<&'input str>
§

Acl

Fields

§name: &'input str
§rule: Option<&'input str>
§comment: Option<&'input str>
§

Backend

Fields

§name: &'input str
§condition: Option<&'input str>
§comment: Option<&'input str>
§

Group

Fields

§name: &'input str
§users: Vec<&'input str>
§comment: Option<&'input str>

This usually refers to a haproxy user group however if it is in the global section of a config it is the systemuser haproxy will try to run as after starting up.

§

User

Fields

§name: &'input str
§password: PasswordRef<'input>
§groups: Vec<&'input str>
§comment: Option<&'input str>
§

SysUser

Fields

§name: &'input str

A global paramater describing the system user haproxy should run as

§

Config

Fields

§key: &'input str
§value: Option<&'input str>
§comment: Option<&'input str>
§

Comment(&'input str)

§

Blank

Trait Implementations§

source§

impl<'input> Debug for Line<'input>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'input> RefUnwindSafe for Line<'input>

§

impl<'input> Send for Line<'input>

§

impl<'input> Sync for Line<'input>

§

impl<'input> Unpin for Line<'input>

§

impl<'input> UnwindSafe for Line<'input>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.