Skip to main content

Module syslog_sync

Module syslog_sync 

Source
Expand description

A set of different syslog types of client.

  • a shared (SyShared)
  • a thread local (SyThreadLocal)
  • a queued (SyQueue)

And implementation of (Syslog)

Re-exports§

pub use self::build_with_thread_local::SyThreadLocal;
pub use self::build_with_queue::SyQueued;

Modules§

build_with_queue
build_with_thread_local

Structs§

SyShared
A sync, shared instance of the syslog client which is shared between many threads. Previously a mutex was used, but since the v5.0.0 a CoW experimental approach is used. The CoW creates clones of the instance without holding a long mutex locks. When writing, the instance does not hold a long lock on updated item. Only exclusive lock locks the readers, because the instance is updated and not usable anyway.
Syslog
A main sync syslog client instance.

Traits§

DynSyslog
A public trait which defines the public interface for the dyn syslog instance.
MutDynSyslog
A public trait which defines the public interface for the dyn syslog instance.
SyslogType
Exposed only to allow constraint on the generic type. Should not be implemented on the user’s side.