pub struct DefensePlanningPolicy { /* private fields */ }Expand description
Whether observed defense is allowed to change the real plan.
Off by default. Enabling it is an explicit, per-release decision.
Implementations§
Source§impl DefensePlanningPolicy
impl DefensePlanningPolicy
Sourcepub const fn disabled() -> Self
pub const fn disabled() -> Self
The default policy: defense observations never change the plan.
Sourcepub const fn from_enabled(enabled: bool) -> Self
pub const fn from_enabled(enabled: bool) -> Self
Builds a policy from an explicit flag value.
Sourcepub const fn is_enabled(self) -> bool
pub const fn is_enabled(self) -> bool
Returns whether enforcement is enabled.
Trait Implementations§
Source§impl Clone for DefensePlanningPolicy
impl Clone for DefensePlanningPolicy
Source§fn clone(&self) -> DefensePlanningPolicy
fn clone(&self) -> DefensePlanningPolicy
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 moreimpl Copy for DefensePlanningPolicy
Source§impl Debug for DefensePlanningPolicy
impl Debug for DefensePlanningPolicy
Source§impl Default for DefensePlanningPolicy
impl Default for DefensePlanningPolicy
Source§fn default() -> DefensePlanningPolicy
fn default() -> DefensePlanningPolicy
Returns the “default value” for a type. Read more
impl Eq for DefensePlanningPolicy
Source§impl PartialEq for DefensePlanningPolicy
impl PartialEq for DefensePlanningPolicy
impl StructuralPartialEq for DefensePlanningPolicy
Auto Trait Implementations§
impl Freeze for DefensePlanningPolicy
impl RefUnwindSafe for DefensePlanningPolicy
impl Send for DefensePlanningPolicy
impl Sync for DefensePlanningPolicy
impl Unpin for DefensePlanningPolicy
impl UnsafeUnpin for DefensePlanningPolicy
impl UnwindSafe for DefensePlanningPolicy
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more