#[non_exhaustive]pub enum AfterVerifyDecision {
Continue,
Abort {
reason: String,
message: String,
},
SkipHandler {
response: SkipHandlerDirective,
},
}Expand description
Decision from an after-verify hook.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continue
Continue to the resource handler (default).
Abort
Fail closed: fire cancel (after_verify_aborted) and reject payment.
SkipHandler
Bypass the resource handler; transport should settle inline.
Fields
§
response: SkipHandlerDirectiveOptional success body for the transport.
Trait Implementations§
Source§impl Clone for AfterVerifyDecision
impl Clone for AfterVerifyDecision
Source§fn clone(&self) -> AfterVerifyDecision
fn clone(&self) -> AfterVerifyDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AfterVerifyDecision
impl Debug for AfterVerifyDecision
Source§impl Default for AfterVerifyDecision
impl Default for AfterVerifyDecision
Source§fn default() -> AfterVerifyDecision
fn default() -> AfterVerifyDecision
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AfterVerifyDecision
impl RefUnwindSafe for AfterVerifyDecision
impl Send for AfterVerifyDecision
impl Sync for AfterVerifyDecision
impl Unpin for AfterVerifyDecision
impl UnsafeUnpin for AfterVerifyDecision
impl UnwindSafe for AfterVerifyDecision
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