pub struct WebhookSubscriber { /* private fields */ }Expand description
Fires-and-forgets an HTTP POST with the serialized event JSON to a URL.
Uses reqwest in a tokio::spawn task so it never blocks the engine.
Implementations§
Trait Implementations§
Source§impl EventSubscriber for WebhookSubscriber
impl EventSubscriber for WebhookSubscriber
Auto Trait Implementations§
impl Freeze for WebhookSubscriber
impl RefUnwindSafe for WebhookSubscriber
impl Send for WebhookSubscriber
impl Sync for WebhookSubscriber
impl Unpin for WebhookSubscriber
impl UnsafeUnpin for WebhookSubscriber
impl UnwindSafe for WebhookSubscriber
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