pub struct WebhookHookSink { /* private fields */ }Expand description
A HookSink that POSTs each event as JSON to a remote HTTP endpoint.
The request body is {"at": "<ISO 8601 timestamp>", "event": {...}}.
Failed requests are retried up to 2 times with exponential back-off
(200 ms, 400 ms). After exhausting retries the error is propagated.
Implementations§
Trait Implementations§
Source§impl HookSink for WebhookHookSink
impl HookSink for WebhookHookSink
Auto Trait Implementations§
impl !RefUnwindSafe for WebhookHookSink
impl !UnwindSafe for WebhookHookSink
impl Freeze for WebhookHookSink
impl Send for WebhookHookSink
impl Sync for WebhookHookSink
impl Unpin for WebhookHookSink
impl UnsafeUnpin for WebhookHookSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more