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
Option
Bind
Acl
Backend
Fields
§
modifier: Option<BackendModifier>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.
User
SysUser
A global paramater describing the system user haproxy should run as
Config
Comment(String)
Blank
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more