[−][src]Enum ccache_stats_reader::CacheField
An enum based field definition for ccache's data fields.
This logic is liberally cribbed from similar definitions in
upstream's ccache.hpp
(formerly ccache.h
).
Variants (Non-exhaustive)
Silly implementation detail
Counter of instances where the compiler produced stdout
Counter of compile failures
Counter of internal errors in ccache
Counter of cache misses
Counter of preprocessor errors
Counter of being unable to find the compiler
Counter of ccache being unable to find a file in cache
Counter of pre-processed cache-hits
Counter of bad compiler arguments
Counter of ccache being called for link
Counter of the number of files in the cache
Counter of the total size of the cache
(Obsolete) Maximum files in cache
(Obsolete) Maximum size of cache
Counts of being called with an unsupported source language
Counts of being unable to write to output file
Counts of being called without an input file
Counter of calls with multiple source files
Counter of autoconf compiles/links
Counter of calling compiler with an unsupported option
Counter of output to stdout
Counter of direct cache hits
Counter of compiler producing no output
Counter of compiler producing empty output
Counter of encountering an error hashing an extra file
Counter of failed compiler checks
Counter of being unable to use a precompiled header
Counter of being called for pre-processing
Counter of cache cleanups performed
Counter of unsupported code directives
Counter of when the stats were last zeroed
Methods
impl CacheField
[src]
pub fn as_usize(self) -> usize
[src]
Return this enums integer as a usize for array access purposes.
pub fn format_value(self, value: u64) -> String
[src]
Format a given u64 as per the format type of this field
println!("{}", CacheField::ZeroTimeStamp.format_value(0)); assert_eq!(CacheField::TotalSize.format_value(100), "100 Kb");
pub fn metadata(self) -> &'static CacheFieldMeta
[src]
Obtain a CacheFieldMeta describing the properties of this field
Trait Implementations
impl Clone for CacheField
[src]
fn clone(&self) -> CacheField
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CacheField
[src]
impl Debug for CacheField
[src]
Auto Trait Implementations
impl Send for CacheField
impl Unpin for CacheField
impl Sync for CacheField
impl UnwindSafe for CacheField
impl RefUnwindSafe for CacheField
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,