pub enum Ack {
Processed,
RejectedPermanently,
RetryableFailure,
RetryableStatus(HttpStatus),
}Expand description
HTTP acknowledgement categories returned to Gingr after webhook handling.
Variants§
Processed
Webhook was accepted and no retry is requested.
RejectedPermanently
Webhook failed validation in a way Gingr should not retry.
RetryableFailure
Webhook processing failed transiently and may be retried.
RetryableStatus(HttpStatus)
Propagates a retryable downstream HTTP status while acknowledging Gingr semantics.
Implementations§
Source§impl Ack
impl Ack
Sourcepub fn retryable_status(status: HttpStatus) -> Self
pub fn retryable_status(status: HttpStatus) -> Self
Classifies a failed dependency response as retryable for Gingr acknowledgement.
Sourcepub fn http_status(&self) -> HttpStatus
pub fn http_status(&self) -> HttpStatus
Maps the acknowledgement category to the HTTP status returned to Gingr.
Trait Implementations§
impl Eq for Ack
impl StructuralPartialEq for Ack
Auto Trait Implementations§
impl Freeze for Ack
impl RefUnwindSafe for Ack
impl Send for Ack
impl Sync for Ack
impl Unpin for Ack
impl UnsafeUnpin for Ack
impl UnwindSafe for Ack
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