pub struct AllowAllPolicy;Expand description
Policy that allows all actions (for replay-only Kernel).
Trait Implementations§
Source§impl Policy for AllowAllPolicy
impl Policy for AllowAllPolicy
Whether the action is allowed for this run and context.
Source§fn retry_strategy(&self, err: &dyn Display, _action: &Action) -> RetryDecision
fn retry_strategy(&self, err: &dyn Display, _action: &Action) -> RetryDecision
Whether to retry after an error (and optionally after a delay).
Source§fn retry_strategy_attempt(
&self,
err: &ActionError,
action: &Action,
attempt: u32,
) -> RetryDecision
fn retry_strategy_attempt( &self, err: &ActionError, action: &Action, attempt: u32, ) -> RetryDecision
Retry strategy with attempt count and structured error. Default uses kind: Permanent => Fail,
others may be retried by implementations. Applies only to executor
Err; ActionResult::Failure is not retried. Read moreSource§fn budget(&self) -> BudgetRules
fn budget(&self) -> BudgetRules
Optional budget; default is no limits.
Auto Trait Implementations§
impl Freeze for AllowAllPolicy
impl RefUnwindSafe for AllowAllPolicy
impl Send for AllowAllPolicy
impl Sync for AllowAllPolicy
impl Unpin for AllowAllPolicy
impl UnsafeUnpin for AllowAllPolicy
impl UnwindSafe for AllowAllPolicy
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