Skip to main content

CommandOutputObserver

Trait CommandOutputObserver 

Source
pub trait CommandOutputObserver: Send + Sync {
    // Required method
    fn on_output_delta<'life0, 'life1, 'async_trait>(
        &'life0 self,
        delta: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Observer that receives streaming output deltas from a workspace command.

Backend implementations call this on each chunk of stdout/stderr they observe. Tool layers wire host event channels behind this trait, so the workspace abstraction does not depend on any tool event type.

Required Methods§

Source

fn on_output_delta<'life0, 'life1, 'async_trait>( &'life0 self, delta: &'life1 str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§