pub struct SyslogLoggingPlugin { /* private fields */ }Expand description
UDP-basierter Syslog-Client.
Implementations§
Source§impl SyslogLoggingPlugin
impl SyslogLoggingPlugin
Sourcepub fn connect(
target: SocketAddr,
app_name: impl Into<String>,
hostname: impl Into<String>,
min_level: LogLevel,
) -> Result<Self>
pub fn connect( target: SocketAddr, app_name: impl Into<String>, hostname: impl Into<String>, min_level: LogLevel, ) -> Result<Self>
Verbindet zu einem Syslog-Collector.
§Errors
io::Error wenn das UDP-Socket nicht gebunden werden kann
(nicht das Connect — UDP ist connectionless; wir binden nur
lokal und senden dann per send_to).
Trait Implementations§
Source§impl LoggingPlugin for SyslogLoggingPlugin
impl LoggingPlugin for SyslogLoggingPlugin
Auto Trait Implementations§
impl !Freeze for SyslogLoggingPlugin
impl RefUnwindSafe for SyslogLoggingPlugin
impl Send for SyslogLoggingPlugin
impl Sync for SyslogLoggingPlugin
impl Unpin for SyslogLoggingPlugin
impl UnsafeUnpin for SyslogLoggingPlugin
impl UnwindSafe for SyslogLoggingPlugin
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