Skip to main content

LiveSink

Trait LiveSink 

Source
pub trait LiveSink: Send + Sync {
    // Required method
    fn on_event(&self, event: &Value);
}
Expand description

Shown a task’s events as they are journaled. basis-cli’s own terminal renderer is the first implementation, but the trait carries no opinion about a terminal — a host could log, forward over a socket, or update a UI just as well.

Required Methods§

Source

fn on_event(&self, event: &Value)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§