Skip to main content

Sink

Trait Sink 

Source
pub trait Sink: Send + Sync {
    // Required methods
    fn event(&self, event: &Event);
    fn warning(&self, line: &str);
    fn output(&self, stderr: bool, bytes: &[u8]);

    // Provided method
    fn output_finished(&self) { ... }
}

Required Methods§

Source

fn event(&self, event: &Event)

Source

fn warning(&self, line: &str)

A qk: line about something that went wrong or was skipped.

Source

fn output(&self, stderr: bool, bytes: &[u8])

Task output, to stdout or stderr.

Provided Methods§

Source

fn output_finished(&self)

Ends one atomic output batch, including any incremental replay chunks.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Sink + ?Sized> Sink for Arc<T>

Source§

fn event(&self, event: &Event)

Source§

fn warning(&self, line: &str)

Source§

fn output(&self, stderr: bool, bytes: &[u8])

Source§

fn output_finished(&self)

Implementors§