pub struct SyslogFile { /* private fields */ }
Expand description
A writer to local file. NO syslog server is required.
Implementations§
Trait Implementations§
Source§impl AsyncSyslogDestination for SyslogFile
impl AsyncSyslogDestination for SyslogFile
Source§impl AsyncSyslogTap<SyslogFile> for AsyncTap<File, SyslogFile>
impl AsyncSyslogTap<SyslogFile> for AsyncTap<File, SyslogFile>
Source§fn new(req_tap: SyslogFile) -> SyRes<Self>
fn new(req_tap: SyslogFile) -> SyRes<Self>
Proves the new instance of the syslog communication. Read more
Source§async fn connectlog(&mut self) -> SyRes<()>
async fn connectlog(&mut self) -> SyRes<()>
Opens a connection to target.
Source§async fn disconnectlog(&mut self) -> Result<()>
async fn disconnectlog(&mut self) -> Result<()>
Disconnects the connection.
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Tells if connection was opened.
Source§fn get_max_msg_size(&self) -> usize
fn get_max_msg_size(&self) -> usize
Returns (in bytes) the maximum message size (including headers).
Source§fn update_tap_data(&mut self, tap_data: SyslogFile)
fn update_tap_data(&mut self, tap_data: SyslogFile)
Updates the connection information without breaking tap.
Source§impl Clone for SyslogFile
impl Clone for SyslogFile
Source§fn clone(&self) -> SyslogFile
fn clone(&self) -> SyslogFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SyslogFile
impl Debug for SyslogFile
Source§impl Display for SyslogFile
impl Display for SyslogFile
Source§impl SyslogDestMsg for SyslogFile
impl SyslogDestMsg for SyslogFile
Source§fn get_max_msg_len(&self) -> usize
fn get_max_msg_len(&self) -> usize
Should return the max message length for specific syslog server type.
Source§impl SyslogDestination for SyslogFile
impl SyslogDestination for SyslogFile
Source§type SocketTap = Tap<File, SyslogFile>
type SocketTap = Tap<File, SyslogFile>
A provider of the connection to syslog for sync code.
Auto Trait Implementations§
impl Freeze for SyslogFile
impl RefUnwindSafe for SyslogFile
impl Send for SyslogFile
impl Sync for SyslogFile
impl Unpin for SyslogFile
impl UnwindSafe for SyslogFile
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