pub trait LogProcessor: Send {
// Required methods
fn process_line(&mut self, line: &str) -> Option<String>;
fn get_full_log(&self) -> String;
fn save_full_log<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_final_result(&self) -> Option<&TaskResult>;
}Expand description
Trait for processing agent log output
Required Methods§
Sourcefn process_line(&mut self, line: &str) -> Option<String>
fn process_line(&mut self, line: &str) -> Option<String>
Process a single line of log output Returns Some(formatted_output) if the line should be displayed, None otherwise
Sourcefn get_full_log(&self) -> String
fn get_full_log(&self) -> String
Get the full log content
Sourcefn save_full_log<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_full_log<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Save the full log to a file
Sourcefn get_final_result(&self) -> Option<&TaskResult>
fn get_final_result(&self) -> Option<&TaskResult>
Get the final result of the task execution