pub struct OutcomeSelector { /* private fields */ }Expand description
Outcome statuses and verification stages accepted by one policy rule.
Implementations§
Source§impl OutcomeSelector
impl OutcomeSelector
Sourcepub fn new(
statuses: BTreeSet<OutcomeStatus>,
stages: BTreeSet<VerificationStage>,
) -> Result<Self, AdaptivePipelineError>
pub fn new( statuses: BTreeSet<OutcomeStatus>, stages: BTreeSet<VerificationStage>, ) -> Result<Self, AdaptivePipelineError>
Creates a non-empty status and stage selector.
Sourcepub fn any_stage(
statuses: BTreeSet<OutcomeStatus>,
) -> Result<Self, AdaptivePipelineError>
pub fn any_stage( statuses: BTreeSet<OutcomeStatus>, ) -> Result<Self, AdaptivePipelineError>
Selects statuses produced by either verification stage.
Sourcepub fn statuses(&self) -> &BTreeSet<OutcomeStatus>
pub fn statuses(&self) -> &BTreeSet<OutcomeStatus>
Returns accepted outcome statuses.
Sourcepub fn stages(&self) -> &BTreeSet<VerificationStage>
pub fn stages(&self) -> &BTreeSet<VerificationStage>
Returns accepted verification stages.
Trait Implementations§
Source§impl Clone for OutcomeSelector
impl Clone for OutcomeSelector
Source§fn clone(&self) -> OutcomeSelector
fn clone(&self) -> OutcomeSelector
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 moreSource§impl Debug for OutcomeSelector
impl Debug for OutcomeSelector
Source§impl<'de> Deserialize<'de> for OutcomeSelector
impl<'de> Deserialize<'de> for OutcomeSelector
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OutcomeSelector
Source§impl PartialEq for OutcomeSelector
impl PartialEq for OutcomeSelector
Source§impl Serialize for OutcomeSelector
impl Serialize for OutcomeSelector
impl StructuralPartialEq for OutcomeSelector
Auto Trait Implementations§
impl Freeze for OutcomeSelector
impl RefUnwindSafe for OutcomeSelector
impl Send for OutcomeSelector
impl Sync for OutcomeSelector
impl Unpin for OutcomeSelector
impl UnsafeUnpin for OutcomeSelector
impl UnwindSafe for OutcomeSelector
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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