use crate::
{
error::SyRes,
formatters::SyslogFormatter,
AsyncSyslogDestination,
Priority,
};
#[cfg(feature = "build_with_queue")]
use crate::SyslogDestination;
#[cfg(feature = "build_with_queue")]
#[allow(async_fn_in_trait)]
pub trait AsyncSyslogQueueApi<F: SyslogFormatter, D: SyslogDestination>: std::fmt::Debug + Send + 'static
{
async fn a_connectlog(&mut self) -> SyRes<()>;
async fn a_setlogmask(&self, logmask: i32) -> SyRes<i32>;
async fn a_closelog(&self) -> SyRes<()>;
async fn a_syslog(&self, pri: Priority, fmt: F);
async fn a_change_identity(&self, ident: &str) -> SyRes<()>;
async fn a_reconnect(&self) -> SyRes<()>;
async fn a_update_tap_data(&self, tap_data: D) -> SyRes<()>;
}
pub(crate) trait AsyncSyslogApi<F: SyslogFormatter, D: AsyncSyslogDestination>: std::fmt::Debug + Send + 'static
{
async fn connectlog(&mut self) -> SyRes<()>;
fn set_logmask(&mut self, logmask: i32) -> i32;
async fn closelog(&mut self) -> SyRes<()>;
async fn vsyslog1(&mut self, pri: Priority, fmt: F);
fn change_identity(&mut self, ident: &str);
async fn reconnect(&mut self) -> SyRes<()>;
async fn update_tap_data(&mut self, tap_data: D) -> SyRes<()>;
}