pub struct GuardConfig {
pub rule: GuardRule,
pub action: GuardAction,
pub action_enabled: bool,
pub max_targets: u32,
}Expand description
Configuration for one guard evaluation cycle.
Fields§
§rule: GuardRuleRule used to evaluate descendants.
action: GuardActionAction to run after evaluation.
action_enabled: boolExplicit action gate. Defaults should be false at call sites.
max_targets: u32Hard cap on number of signaled targets when action is enabled.
Trait Implementations§
Source§impl Clone for GuardConfig
impl Clone for GuardConfig
Auto Trait Implementations§
impl Forget for GuardConfig
impl Freeze for GuardConfig
impl Move for GuardConfig
impl RefUnwindSafe for GuardConfig
impl Send for GuardConfig
impl Sync for GuardConfig
impl Unpin for GuardConfig
impl UnsafeUnpin for GuardConfig
impl UnwindSafe for GuardConfig
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