pub trait ProgressReporter: Send + Sync {
// Required methods
fn update_agent_progress<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: &'life1 str,
progress: AgentProgress,
) -> Pin<Box<dyn Future<Output = MapReduceResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_overall_progress<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MapReduceResult<f32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_estimated_completion<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MapReduceResult<Option<DateTime<Utc>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn export_progress<'life0, 'async_trait>(
&'life0 self,
format: ExportFormat,
) -> Pin<Box<dyn Future<Output = MapReduceResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Progress reporter trait for extensibility
Required Methods§
fn update_agent_progress<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: &'life1 str,
progress: AgentProgress,
) -> Pin<Box<dyn Future<Output = MapReduceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_overall_progress<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MapReduceResult<f32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_estimated_completion<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MapReduceResult<Option<DateTime<Utc>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn export_progress<'life0, 'async_trait>(
&'life0 self,
format: ExportFormat,
) -> Pin<Box<dyn Future<Output = MapReduceResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".