Skip to main content

LogSender

Trait LogSender 

Source
pub trait LogSender: Send + Sync {
    // Required methods
    fn send(
        &mut self,
        target: OutputTarget,
        payload: Vec<Vec<u8>>,
    ) -> Result<()>;
    fn flush(&mut self) -> Result<()>;
}
Expand description

Trait for sending logs

Required Methods§

Source

fn send(&mut self, target: OutputTarget, payload: Vec<Vec<u8>>) -> Result<()>

Send a log payload in bytes

Source

fn flush(&mut self) -> Result<()>

Flush the log channel, ensuring all messages are delivered Returns when the flush message has been acknowledged

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§