pub trait QueueHandler:
Send
+ Sync
+ 'static {
// Required method
fn handle(
&self,
batch: MessageBatch<String>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'static>>;
}Expand description
Trait for queue message handlers.
Implemented automatically for async functions with the signature:
async fn(MessageBatch<String>) -> worker::Result<()>