[][src]Struct alog::Config

pub struct Config<'a> {
    pub ipv4: &'a str,
    pub ipv6: &'a str,
    pub host: &'a str,
    pub skip: 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

flush: bool

Flush output after each line

Methods

impl<'a> Config<'a>[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_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_skip(&mut self, b: bool)[src]

Set skip field

Trait Implementations

impl<'a> Debug for Config<'a>[src]

impl<'a> Default for Config<'a>[src]

defaults to an equivalent of localhost

Auto Trait Implementations

impl<'a> RefUnwindSafe for Config<'a>

impl<'a> Send for Config<'a>

impl<'a> Sync for Config<'a>

impl<'a> Unpin for Config<'a>

impl<'a> UnwindSafe for Config<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.