pub trait Host: Send + Send {
    // Required method
    fn log(
        &mut self,
        level: Level,
        context: String,
        message: String,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn log( &mut self, level: Level, context: String, message: String, ) -> impl Future<Output = Result<()>> + Send

Emit a log message.

A log message has a level describing what kind of message is being sent, a context, which is an uninterpreted string meant to help consumers group similar messages, and a string containing the message text.

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.

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Source§

async fn log( &mut self, level: Level, context: String, message: String, ) -> Result<()>

Emit a log message.

A log message has a level describing what kind of message is being sent, a context, which is an uninterpreted string meant to help consumers group similar messages, and a string containing the message text.

Implementors§