pub trait PushWorkHandler: Send + Sync {
// Required methods
fn handle_payload<'life0, 'async_trait>(
&'life0 self,
payload: Bytes,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_metrics(
&self,
endpoint: &Endpoint,
metrics_labels: Option<&[(&str, &str)]>,
) -> Result<()>;
}