pub trait PushWorkHandler: Send + Sync {
// Required methods
fn handle_payload<'life0, 'async_trait>(
&'life0 self,
payload: Bytes,
request_id: Option<String>,
) -> 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<()>;
// Provided method
fn set_endpoint_health_check_notifier(
&self,
_notifier: Arc<Notify>,
) -> Result<()> { ... }
}Required Methods§
fn handle_payload<'life0, 'async_trait>(
&'life0 self,
payload: Bytes,
request_id: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".