pub enum Section {
BlankLine,
Comment(String),
Global {
comment: Option<String>,
lines: Vec<Line>,
},
Default {
comment: Option<String>,
proxy: Option<String>,
lines: Vec<Line>,
},
Frontend {
comment: Option<String>,
proxy: String,
lines: Vec<Line>,
header_addr: Option<(Address, Option<String>)>,
},
Listen {
comment: Option<String>,
proxy: String,
lines: Vec<Line>,
header_addr: Option<(Address, Option<String>)>,
},
Backend {
comment: Option<String>,
proxy: String,
lines: Vec<Line>,
},
Userlist {
comment: Option<String>,
name: String,
lines: Vec<Line>,
},
UnknownLine {
line: String,
},
}Expand description
Represents a section in a config file.
Variants§
BlankLine
Comment(String)
Comment on a separate line not in a section
Global
The global section of a config.
Fields
Default
The lines in the default section of a config.
Fields
Frontend
Fields
Listen
Fields
Backend
Fields
Userlist
Fields
UnknownLine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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