pub struct SyslogLocal { /* private fields */ }Implementations§
Source§impl SyslogLocal
impl SyslogLocal
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a default connection to local syslog server. The correct path will be picked automatically.
Sourcepub fn new_custom_path<P: Into<PathBuf>>(
custom_path: P,
use_alt_path: bool,
) -> Self
pub fn new_custom_path<P: Into<PathBuf>>( custom_path: P, use_alt_path: bool, ) -> Self
Creates a special connection to specific local socket. If use_alt_path is
set to true and custom_path is not available, other pre-programmed paths
will be probed and selected the first available.
Trait Implementations§
Source§impl Debug for SyslogLocal
impl Debug for SyslogLocal
Source§impl SyslogDestination for SyslogLocal
impl SyslogDestination for SyslogLocal
fn init(self) -> SyRes<TapTypeData>
Auto Trait Implementations§
impl Freeze for SyslogLocal
impl RefUnwindSafe for SyslogLocal
impl Send for SyslogLocal
impl Sync for SyslogLocal
impl Unpin for SyslogLocal
impl UnwindSafe for SyslogLocal
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