#[repr(u32)]pub enum MetricsBitmapFlags {
LifecycleAnalysis = 1,
ContainerAnalysis = 2,
TypeUsageStats = 4,
SourceAnalysis = 8,
FragmentationAnalysis = 16,
ThreadContext = 32,
DropChainAnalysis = 64,
ZstAnalysis = 128,
HealthScoring = 256,
PerformanceBenchmarks = 512,
}
Expand description
Task 6: Metrics bitmap flags for identifying which advanced metrics are present
Variants§
LifecycleAnalysis = 1
ContainerAnalysis = 2
TypeUsageStats = 4
SourceAnalysis = 8
FragmentationAnalysis = 16
ThreadContext = 32
DropChainAnalysis = 64
ZstAnalysis = 128
HealthScoring = 256
PerformanceBenchmarks = 512
Implementations§
Source§impl MetricsBitmapFlags
impl MetricsBitmapFlags
Sourcepub fn is_enabled(bitmap: u32, flag: MetricsBitmapFlags) -> bool
pub fn is_enabled(bitmap: u32, flag: MetricsBitmapFlags) -> bool
Check if a specific metric is enabled in the bitmap
Sourcepub fn enable(bitmap: u32, flag: MetricsBitmapFlags) -> u32
pub fn enable(bitmap: u32, flag: MetricsBitmapFlags) -> u32
Enable a specific metric in the bitmap
Sourcepub fn disable(bitmap: u32, flag: MetricsBitmapFlags) -> u32
pub fn disable(bitmap: u32, flag: MetricsBitmapFlags) -> u32
Disable a specific metric in the bitmap
Trait Implementations§
Source§impl Clone for MetricsBitmapFlags
impl Clone for MetricsBitmapFlags
Source§fn clone(&self) -> MetricsBitmapFlags
fn clone(&self) -> MetricsBitmapFlags
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 MetricsBitmapFlags
impl Debug for MetricsBitmapFlags
Source§impl PartialEq for MetricsBitmapFlags
impl PartialEq for MetricsBitmapFlags
impl Copy for MetricsBitmapFlags
impl StructuralPartialEq for MetricsBitmapFlags
Auto Trait Implementations§
impl Freeze for MetricsBitmapFlags
impl RefUnwindSafe for MetricsBitmapFlags
impl Send for MetricsBitmapFlags
impl Sync for MetricsBitmapFlags
impl Unpin for MetricsBitmapFlags
impl UnwindSafe for MetricsBitmapFlags
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more