pub enum ProfConfigMode {
Fallback,
Override,
}Expand description
How ProfConfig fields interact with the profiler’s environment
variables and mi_option_* settings.
Mirrors mi_prof_config_mode_t (include/mimalloc/profile.h); see that
header for the full FALLBACK/OVERRIDE semantics, including the caveat
that in Override mode accum == false, dump_format == Text, and
max_profiler_bytes == None cannot be distinguished from “unset” and so
always fall back to env-then-default rather than forcing the off/default
value.
Variants§
Fallback
Struct fields are used only where the corresponding env var / option is absent.
Override
Non-default struct fields win over env vars / options (see the caveat above).
Trait Implementations§
Source§impl Clone for ProfConfigMode
impl Clone for ProfConfigMode
Source§fn clone(&self) -> ProfConfigMode
fn clone(&self) -> ProfConfigMode
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 moreimpl Copy for ProfConfigMode
Source§impl Debug for ProfConfigMode
impl Debug for ProfConfigMode
Source§impl Default for ProfConfigMode
impl Default for ProfConfigMode
Source§fn default() -> ProfConfigMode
fn default() -> ProfConfigMode
Returns the “default value” for a type. Read more
impl Eq for ProfConfigMode
Source§impl PartialEq for ProfConfigMode
impl PartialEq for ProfConfigMode
impl StructuralPartialEq for ProfConfigMode
Auto Trait Implementations§
impl Freeze for ProfConfigMode
impl RefUnwindSafe for ProfConfigMode
impl Send for ProfConfigMode
impl Sync for ProfConfigMode
impl Unpin for ProfConfigMode
impl UnsafeUnpin for ProfConfigMode
impl UnwindSafe for ProfConfigMode
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