pub struct WebhookChannel { /* private fields */ }Expand description
Blocking HTTP webhook channel. Uses ureq, which is already in the
kernel’s dependency tree.
Implementations§
Source§impl WebhookChannel
impl WebhookChannel
Trait Implementations§
Source§impl ApprovalChannel for WebhookChannel
impl ApprovalChannel for WebhookChannel
Source§fn dispatch(
&self,
request: &ApprovalRequest,
) -> Result<ChannelHandle, ChannelError>
fn dispatch( &self, request: &ApprovalRequest, ) -> Result<ChannelHandle, ChannelError>
Deliver an approval request to the configured endpoint. The
channel implementation is responsible for retries; on terminal
failure the call returns
Err and the kernel leaves the
request in the store (fail-closed).Auto Trait Implementations§
impl Freeze for WebhookChannel
impl RefUnwindSafe for WebhookChannel
impl Send for WebhookChannel
impl Sync for WebhookChannel
impl Unpin for WebhookChannel
impl UnsafeUnpin for WebhookChannel
impl UnwindSafe for WebhookChannel
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