pub enum DecisionStage {
Guard,
Utility,
Random,
}Expand description
The stage of a composite policy that produced a decision. Decisions from single-stage policies, and every historical trace, carry no stage.
Variants§
Guard
An ordered guard selected or deferred before utility scoring.
Utility
Weighted utility scoring selected or deferred.
Random
A bounded random tie-break among near-equivalent utility candidates.
Trait Implementations§
Source§impl Clone for DecisionStage
impl Clone for DecisionStage
Source§fn clone(&self) -> DecisionStage
fn clone(&self) -> DecisionStage
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 DecisionStage
Source§impl Debug for DecisionStage
impl Debug for DecisionStage
Source§impl<'de> Deserialize<'de> for DecisionStage
impl<'de> Deserialize<'de> for DecisionStage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionStage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionStage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecisionStage
Source§impl Ord for DecisionStage
impl Ord for DecisionStage
Source§fn cmp(&self, other: &DecisionStage) -> Ordering
fn cmp(&self, other: &DecisionStage) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DecisionStage
impl PartialEq for DecisionStage
Source§impl PartialOrd for DecisionStage
impl PartialOrd for DecisionStage
Source§impl Serialize for DecisionStage
impl Serialize for DecisionStage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DecisionStage
Auto Trait Implementations§
impl Freeze for DecisionStage
impl RefUnwindSafe for DecisionStage
impl Send for DecisionStage
impl Sync for DecisionStage
impl Unpin for DecisionStage
impl UnsafeUnpin for DecisionStage
impl UnwindSafe for DecisionStage
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