Skip to main content

WebhookHandlerOutput

Trait WebhookHandlerOutput 

Source
pub trait WebhookHandlerOutput { }
Expand description

A webhook handler’s completion value.

Returning () acknowledges successful processing. Returning a fallible result propagates its error from Webhooks::handle so the receiver can answer non-2xx and request a retry.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WebhookHandlerOutput for ()

Source§

impl<E> WebhookHandlerOutput for Result<(), E>
where E: StdError + Send + Sync + 'static,

Implementors§