pub struct WebhookTrigger { /* private fields */ }Expand description
HTTP webhook receiver trigger.
Implementations§
Source§impl WebhookTrigger
impl WebhookTrigger
Sourcepub fn new(config: WebhookConfig) -> Self
pub fn new(config: WebhookConfig) -> Self
Create a new WebhookTrigger from config.
Trait Implementations§
Source§impl TriggerSource for WebhookTrigger
impl TriggerSource for WebhookTrigger
Source§fn kind(&self) -> &'static str
fn kind(&self) -> &'static str
Unique, stable identifier for this trigger kind (e.g.
"cdc", "email").Source§fn start<'life0, 'async_trait>(
&'life0 self,
on_event: EventCallback,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
on_event: EventCallback,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start watching for events. Read more
Source§fn pause<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pause<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TriggerFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Pause the trigger without destroying source state.
Auto Trait Implementations§
impl Freeze for WebhookTrigger
impl RefUnwindSafe for WebhookTrigger
impl Send for WebhookTrigger
impl Sync for WebhookTrigger
impl Unpin for WebhookTrigger
impl UnsafeUnpin for WebhookTrigger
impl UnwindSafe for WebhookTrigger
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