pub struct WebhookSink { /* private fields */ }Expand description
Webhook notification sink
Sends event payloads to an HTTP endpoint. Supports retry with exponential backoff on server errors and network failures.
Implementations§
Source§impl WebhookSink
impl WebhookSink
Sourcepub fn new(sender: Arc<dyn HttpSender>, config: WebhookConfig) -> Self
pub fn new(sender: Arc<dyn HttpSender>, config: WebhookConfig) -> Self
Create a new WebhookSink with a sender and config
Trait Implementations§
Source§impl Debug for WebhookSink
impl Debug for WebhookSink
Source§impl Sink for WebhookSink
impl Sink for WebhookSink
Source§fn deliver<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
payload: Value,
_recipient_id: Option<&'life1 str>,
_context_vars: &'life2 HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn deliver<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
payload: Value,
_recipient_id: Option<&'life1 str>,
_context_vars: &'life2 HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Deliver a payload to this sink Read more
Auto Trait Implementations§
impl Freeze for WebhookSink
impl !RefUnwindSafe for WebhookSink
impl Send for WebhookSink
impl Sync for WebhookSink
impl Unpin for WebhookSink
impl UnsafeUnpin for WebhookSink
impl !UnwindSafe for WebhookSink
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