pub struct FeatureFlagRegistry { /* private fields */ }Implementations§
Source§impl FeatureFlagRegistry
impl FeatureFlagRegistry
pub fn new() -> Self
pub fn insert(&mut self, flag: FeatureFlag) -> Result<(), ObservabilityError>
pub fn get(&self, id: &FeatureFlagId) -> Option<&FeatureFlag>
Trait Implementations§
Source§impl Clone for FeatureFlagRegistry
impl Clone for FeatureFlagRegistry
Source§fn clone(&self) -> FeatureFlagRegistry
fn clone(&self) -> FeatureFlagRegistry
Returns a duplicate of the value. Read more
1.0.0 · 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 FeatureFlagRegistry
impl Debug for FeatureFlagRegistry
Source§impl Default for FeatureFlagRegistry
impl Default for FeatureFlagRegistry
Source§fn default() -> FeatureFlagRegistry
fn default() -> FeatureFlagRegistry
Returns the “default value” for a type. Read more
Source§impl PartialEq for FeatureFlagRegistry
impl PartialEq for FeatureFlagRegistry
impl Eq for FeatureFlagRegistry
impl StructuralPartialEq for FeatureFlagRegistry
Auto Trait Implementations§
impl Freeze for FeatureFlagRegistry
impl RefUnwindSafe for FeatureFlagRegistry
impl Send for FeatureFlagRegistry
impl Sync for FeatureFlagRegistry
impl Unpin for FeatureFlagRegistry
impl UnsafeUnpin for FeatureFlagRegistry
impl UnwindSafe for FeatureFlagRegistry
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.