pub enum FailMode {
Open,
Closed,
}Expand description
What the pipeline does when a stage returns Err instead of a decision.
Set per stage with PipelineBuilder::stage_with_fail_mode. Stages added
with PipelineBuilder::stage use FailMode::Open.
Variants§
Open
Treat the error as Decision::Allow and keep evaluating later
stages (fail-open). The default.
Closed
Stop and return Decision::Block with code STAGE_ERROR_CODE
(fail-closed).
Trait Implementations§
impl Copy for FailMode
impl Eq for FailMode
impl StructuralPartialEq for FailMode
Auto Trait Implementations§
impl Freeze for FailMode
impl RefUnwindSafe for FailMode
impl Send for FailMode
impl Sync for FailMode
impl Unpin for FailMode
impl UnsafeUnpin for FailMode
impl UnwindSafe for FailMode
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