pub trait WebhookHandler:
Send
+ Sync
+ 'static {
type Error: Display + Send + Sync + 'static;
// Required method
fn handle(
&self,
event: WebhookEvent,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}Expand description
Processes authenticated, parsed webhook events that passed their filters.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".