Struct alog::Config [−][src]
pub struct Config<'a> { pub ipv4: &'a str, pub ipv6: &'a str, pub host: &'a str, pub skip: bool, pub authuser: bool, pub trim: bool, pub optimize: bool, pub flush: bool, }
Collection of replacement strings / config flags
Fields
ipv4: &'a str
IPv4-parseable $remote_addr
replacement string
ipv6: &'a str
IPv6-parseable $remote_addr
replacement string
host: &'a str
$remote_addr
replacement string
skip: bool
Skip lines w/o a $remote_addr
part / first word
authuser: bool
Try to clear the authuser field
trim: bool
Trim spaces from the start of every line
optimize: bool
Don’t clear authuser fields starting with “- [” We assume these fields are already cleared.
flush: bool
Flush output after each line
Implementations
impl<'a> Config<'a>
[src]
impl<'a> Config<'a>
[src]pub fn new() -> Self
[src]
pub fn get_ipv4_value(&self) -> &'a str
[src]
Get IPv4 replacement value
pub fn get_ipv6_value(&self) -> &'a str
[src]
Get IPv6 replacement value
pub fn get_host_value(&self) -> &'a str
[src]
Get string replacement value
pub fn get_skip(&self) -> bool
[src]
Get skip
value
pub fn get_authuser(&self) -> bool
[src]
Get authuser
value
pub fn get_trim(&self) -> bool
[src]
Get trim
value
pub fn get_optimize(&self) -> bool
[src]
Get optimize
value
pub fn get_flush(&self) -> bool
[src]
Get flush
value
pub fn set_ipv4_value(&mut self, ipv4: &'a str)
[src]
Set IPv4 replacement String
pub fn set_ipv6_value(&mut self, ipv6: &'a str)
[src]
Set IPv6 replacement String
pub fn set_host_value(&mut self, host: &'a str)
[src]
Set hostname
replacement String
pub fn set_flush(&mut self, b: bool)
[src]
Set flush
field
pub fn set_authuser(&mut self, b: bool)
[src]
Set authuser
field
pub fn set_trim(&mut self, b: bool)
[src]
Set trim
field
pub fn set_optimize(&mut self, b: bool)
[src]
Set optimize
field
pub fn set_skip(&mut self, b: bool)
[src]
Set skip
field
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> UnwindSafe for Config<'a>
impl<'a> UnwindSafe for Config<'a>