syslog_rs/a_sync/
mod.rs

1
2/// A `tokio` based async.
3#[cfg(feature = "build_async_tokio")]
4pub mod async_tokio;
5
6/// A `smol`based async.
7#[cfg(feature = "build_async_smol")]
8pub mod async_smol;
9
10/// A async interface.
11pub mod syslog_async;
12
13/// An async socket interface.
14pub mod async_socket;
15
16/// An available APIs and common interfaces.
17pub mod syslog_trait;
18
19/// A queue adapter selector.
20#[cfg(feature = "build_with_queue")]
21pub mod async_queue_adapter;
22
23/// Internal syslog logic.
24pub mod syslog_async_internal;
25
26// -- PUBLIC EXPORT --
27
28pub use syslog_async_internal::{AsyncMutex, AsyncMutexGuard};
29
30pub use async_socket::{AsyncTap, AsyncSyslogTap};
31
32#[cfg(feature = "build_async_tokio")]
33pub use async_tokio::async_mutex::DefaultAsyncMutex;
34
35#[cfg(feature = "build_async_tokio")]
36pub use async_tokio::async_internal::DefaultIOs;
37
38#[cfg(feature = "build_async_smol")]
39pub use async_smol::async_mutex::DefaultAsyncMutex;
40
41#[cfg(feature = "build_async_smol")]
42pub use async_smol::async_internal::DefaultIOs;