syslog_rs/sync/
mod.rs

1
2/// An APIs and common interfaces.
3pub mod syslog_trait;
4
5//-- SYNC --
6
7/// A syslog instance which is shared between threads.
8pub mod syslog_sync_shared;
9
10pub use syslog_sync_shared::DefaultLocalSyslogDestination;
11
12//-- SYNC QUEUE --
13
14/// A syslog intance which uses an MPSC channels.
15#[cfg(feature = "build_with_queue")]
16pub mod syslog_sync_queue;
17
18/// A queue adapter based on the `crossbeam` MPSC.
19#[cfg(all(feature = "build_with_queue", not(feature = "async_embedded")))]
20pub(crate) mod crossbeam_queue_adapter;
21
22/// A streamer for the syslog.
23pub mod syslog_stream;
24
25/// Internal logic of the syslog client. (UNIX)
26//#[cfg(target_family = "unix")]
27pub mod syslog_sync_internal;
28
29//#[cfg(target_family = "windows")]
30//pub mod syslog_sync_internal_windows;
31
32/// A single threaded or thread_local syslog.
33#[cfg(feature = "build_with_thread_local")]
34pub mod syslog_threadlocal;
35
36//pub mod syslog;
37
38//-- SYNC SOCKET --
39
40/// A sockets (communication).
41pub(crate) mod socket;
42
43
44#[cfg(all(feature = "build_with_queue", not(feature = "async_embedded")))]
45pub(crate) use crossbeam_queue_adapter as q_adapter;
46
47#[cfg(all(feature = "async_embedded", feature = "build_with_queue"))]
48pub(crate) use crate::a_sync::async_queue_adapter::q_adapter as q_adapter;
49
50#[cfg(all(feature = "build_with_queue"))]
51pub use q_adapter::DefaultQueueAdapter;
52
53/// Exposing API for streaming to syslog.
54pub use syslog_stream::{SyStream, SyStreamApi};
55
56//#[cfg(target_family = "unix")]
57pub(crate) use syslog_sync_internal::LogItems;
58
59//#[cfg(target_family = "windows")]
60//pub(crate) use syslog_sync_internal_windows::LogItems;