AsyncSyslogInternalIO

Trait AsyncSyslogInternalIO 

Source
pub trait AsyncSyslogInternalIO:
    Debug
    + Send
    + 'static {
    // Required methods
    async fn send_to_syscons(logstat: LogStat, msg_payload: &str);
    async fn send_to_stderr(logstat: LogStat, msg: &str);
    async fn sleep_micro(us: u64);
}
Expand description

A trait which generalize some operations which are different from the various async providers i.e smol or tokio or external.

Required Methods§

Source

async fn send_to_syscons(logstat: LogStat, msg_payload: &str)

Sends a message to syscons device. Usually this is a /dev/console defined by crate::common::PATH_CONSOLE.

§Arguemnts
  • logstat - a instance setup LogStat.

  • msg_payload - a payload of the syslog message (without headers).

Source

async fn send_to_stderr(logstat: LogStat, msg: &str)

Sends a message to stderr device.

§Arguemnts
  • logstat - a instance setup LogStat.

  • msg - a payload of the syslog message (without headers).

Source

async fn sleep_micro(us: u64)

Sleep the current task for us microseconds.

§Arguments
  • us - microseconds.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§