pub enum MemoryStatisticsOutcome {
Applied,
AlreadyOff,
TooLate,
}Expand description
What disable_memory_statistics_at_process_start did: SQLite either
accepted the switch (and allocator statistics were on or already off) or
refused it.
Exhaustive on purpose: SQLite accepts or refuses the switch, and a build has the statistics on or off, so these three are every outcome there is, and a new one would fail to compile at each exhaustive match on it (the storage doctor’s report is one) instead of falling into a wildcard arm.
Variants§
Applied
This build has allocator statistics on; they are now off.
AlreadyOff
This build compiles allocator statistics off; nothing changed.
TooLate
SQLite was already in use, so it refused the switch: allocator statistics stay as built. A degrade, never a startup failure.
Trait Implementations§
Source§impl Clone for MemoryStatisticsOutcome
impl Clone for MemoryStatisticsOutcome
impl Copy for MemoryStatisticsOutcome
Source§impl Debug for MemoryStatisticsOutcome
impl Debug for MemoryStatisticsOutcome
Source§impl Display for MemoryStatisticsOutcome
impl Display for MemoryStatisticsOutcome
impl Eq for MemoryStatisticsOutcome
Source§impl Hash for MemoryStatisticsOutcome
impl Hash for MemoryStatisticsOutcome
Source§impl PartialEq for MemoryStatisticsOutcome
impl PartialEq for MemoryStatisticsOutcome
impl StructuralPartialEq for MemoryStatisticsOutcome
Auto Trait Implementations§
impl Forget for MemoryStatisticsOutcome
impl Freeze for MemoryStatisticsOutcome
impl Move for MemoryStatisticsOutcome
impl RefUnwindSafe for MemoryStatisticsOutcome
impl Send for MemoryStatisticsOutcome
impl Sync for MemoryStatisticsOutcome
impl Unpin for MemoryStatisticsOutcome
impl UnsafeUnpin for MemoryStatisticsOutcome
impl UnwindSafe for MemoryStatisticsOutcome
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