pub struct AsyncTap<T, D: AsyncSyslogDestination> { /* private fields */ }
Expand description
A structure which holds a socket instance and all necessary information which can be used to reestablish the connection. This is for async only.
Trait Implementations§
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 AsyncSyslogTap<SyslogLocal> for AsyncTap<UnixDatagram, SyslogLocal>
impl AsyncSyslogTap<SyslogLocal> for AsyncTap<UnixDatagram, SyslogLocal>
Source§fn new(req_tap: SyslogLocal) -> SyRes<Self>
fn new(req_tap: SyslogLocal) -> 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: SyslogLocal)
fn update_tap_data(&mut self, tap_data: SyslogLocal)
Updates the connection information without breaking tap.
Source§impl AsyncSyslogTap<SyslogNetTcp> for AsyncTap<TcpStream, SyslogNetTcp>
impl AsyncSyslogTap<SyslogNetTcp> for AsyncTap<TcpStream, SyslogNetTcp>
Source§fn new(req_tap: SyslogNetTcp) -> SyRes<Self>
fn new(req_tap: SyslogNetTcp) -> 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: SyslogNetTcp)
fn update_tap_data(&mut self, tap_data: SyslogNetTcp)
Updates the connection information without breaking tap.
Source§impl AsyncSyslogTap<SyslogNetUdp> for AsyncTap<UdpSocket, SyslogNetUdp>
impl AsyncSyslogTap<SyslogNetUdp> for AsyncTap<UdpSocket, SyslogNetUdp>
Source§fn new(req_tap: SyslogNetUdp) -> SyRes<Self>
fn new(req_tap: SyslogNetUdp) -> 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: SyslogNetUdp)
fn update_tap_data(&mut self, tap_data: SyslogNetUdp)
Updates the connection information without breaking tap.
Source§impl AsyncSyslogTap<SyslogTls> for AsyncTap<TlsStream<TcpStream>, SyslogTls>
impl AsyncSyslogTap<SyslogTls> for AsyncTap<TlsStream<TcpStream>, SyslogTls>
Source§fn new(req_tap: SyslogTls) -> SyRes<Self>
fn new(req_tap: SyslogTls) -> 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: SyslogTls)
fn update_tap_data(&mut self, tap_data: SyslogTls)
Updates the connection information without breaking tap.
Auto Trait Implementations§
impl<T, D> Freeze for AsyncTap<T, D>
impl<T, D> RefUnwindSafe for AsyncTap<T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for AsyncTap<T, D>where
T: Send,
impl<T, D> Sync for AsyncTap<T, D>
impl<T, D> Unpin for AsyncTap<T, D>
impl<T, D> UnwindSafe for AsyncTap<T, D>where
D: UnwindSafe,
T: UnwindSafe,
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