pub trait SyslogDestination:
Debug
+ Display
+ Send
+ Clone
+ SyslogDestMsg
+ 'static {
type SocketTap: SyslogTap<Self>;
const DEST_TYPE: DestinationType;
}Expand description
This trait is a common interface for the syslog realization which holds necessary info for compile time initialization and initialization during runtime.
Required Associated Constants§
const DEST_TYPE: DestinationType
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl SyslogDestination for SyslogFile
Available on crate feature build_sync only.
impl SyslogDestination for SyslogFile
Available on crate feature
build_sync only.const DEST_TYPE: DestinationType = DestinationType::File
type SocketTap = Tap<File, SyslogFile>
Source§impl SyslogDestination for SyslogNetTcp
Available on crate feature build_sync only.
impl SyslogDestination for SyslogNetTcp
Available on crate feature
build_sync only.const DEST_TYPE: DestinationType = DestinationType::Network
type SocketTap = Tap<TcpStream, SyslogNetTcp>
Source§impl SyslogDestination for SyslogNetUdp
Available on crate feature build_sync only.
impl SyslogDestination for SyslogNetUdp
Available on crate feature
build_sync only.const DEST_TYPE: DestinationType = DestinationType::Network
type SocketTap = Tap<UdpSocket, SyslogNetUdp>
Source§impl SyslogDestination for SyslogTls
Available on crate feature build_sync only.
impl SyslogDestination for SyslogTls
Available on crate feature
build_sync only.const DEST_TYPE: DestinationType = DestinationType::Network
type SocketTap = Tap<Mutex<StreamOwned<ClientConnection, TcpStream>>, SyslogTls>
Source§impl SyslogDestination for SyslogLocal
Available on crate feature build_sync only.
impl SyslogDestination for SyslogLocal
Available on crate feature
build_sync only.