#[non_exhaustive]pub enum EnabledOutcome {
Off,
SometimesOn,
AlwaysOn,
ReProbe,
}Expand description
Result of the hot-path enabled check.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Off
Cached Never — skip the emit branch.
SometimesOn
Cached Sometimes — caller must still call Observer::enabled.
AlwaysOn
Cached Always — caller skips Observer::enabled and emits.
ReProbe
Cache is stale or empty — caller must probe and cache(...) the
result.
Trait Implementations§
Source§impl Clone for EnabledOutcome
impl Clone for EnabledOutcome
Source§fn clone(&self) -> EnabledOutcome
fn clone(&self) -> EnabledOutcome
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 EnabledOutcome
impl Debug for EnabledOutcome
Source§impl PartialEq for EnabledOutcome
impl PartialEq for EnabledOutcome
Source§fn eq(&self, other: &EnabledOutcome) -> bool
fn eq(&self, other: &EnabledOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EnabledOutcome
impl Eq for EnabledOutcome
impl StructuralPartialEq for EnabledOutcome
Auto Trait Implementations§
impl Freeze for EnabledOutcome
impl RefUnwindSafe for EnabledOutcome
impl Send for EnabledOutcome
impl Sync for EnabledOutcome
impl Unpin for EnabledOutcome
impl UnsafeUnpin for EnabledOutcome
impl UnwindSafe for EnabledOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.