Line

Enum Line 

Source
pub enum Line {
    Server {
        name: String,
        addr: Address,
        option: Option<String>,
        comment: Option<String>,
    },
    Option {
        keyword: String,
        value: Option<String>,
        comment: Option<String>,
    },
    Bind {
        addr: Address,
        value: Option<String>,
        comment: Option<String>,
    },
    Acl {
        name: String,
        rule: Option<String>,
        comment: Option<String>,
    },
    Backend {
        name: String,
        modifier: Option<BackendModifier>,
        condition: Option<String>,
        comment: Option<String>,
    },
    Group {
        name: String,
        users: Vec<String>,
        comment: Option<String>,
    },
    User {
        name: String,
        password: Password,
        groups: Vec<String>,
        comment: Option<String>,
    },
    SysUser {
        name: String,
    },
    Config {
        key: String,
        value: Option<String>,
        comment: Option<String>,
    },
    Comment(String),
    Blank,
}

Variants§

§

Server

Fields

§name: String
§addr: Address
§option: Option<String>
§comment: Option<String>
§

Option

Fields

§keyword: String
§comment: Option<String>
§

Bind

Fields

§addr: Address
§comment: Option<String>
§

Acl

Fields

§name: String
§comment: Option<String>
§

Backend

Fields

§name: String
§condition: Option<String>
§comment: Option<String>
§

Group

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.

Fields

§name: String
§users: Vec<String>
§comment: Option<String>
§

User

Fields

§name: String
§password: Password
§groups: Vec<String>
§comment: Option<String>
§

SysUser

A global paramater describing the system user haproxy should run as

Fields

§name: String
§

Config

Fields

§comment: Option<String>
§

Comment(String)

§

Blank

Trait Implementations§

Source§

impl Debug for Line

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a Line<'a>> for Line

Source§

fn from(line: &'a Line<'a>) -> Line

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Line

§

impl RefUnwindSafe for Line

§

impl Send for Line

§

impl Sync for Line

§

impl Unpin for Line

§

impl UnwindSafe for Line

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.