Struct syslog_tracing::Options
source · pub struct Options(/* private fields */);
Expand description
syslog
options.
Examples
use syslog_tracing::Options;
// Log PID with messages and log to stderr as well as `syslog`.
let opts = Options::LOG_PID | Options::LOG_PERROR;
Implementations§
source§impl Options
impl Options
sourcepub const LOG_ODELAY: Self = _
pub const LOG_ODELAY: Self = _
Delay open until first syslog() (default).
sourcepub const LOG_NDELAY: Self = _
pub const LOG_NDELAY: Self = _
Don’t delay open.
sourcepub const LOG_NOWAIT: Self = _
pub const LOG_NOWAIT: Self = _
Don’t wait for console forks: DEPRECATED.
sourcepub const LOG_PERROR: Self = _
pub const LOG_PERROR: Self = _
Log to stderr as well.
Trait Implementations§
impl Copy for Options
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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