pub struct DebugConfig {
pub enable_runtime_assertions: bool,
pub enable_runtime_invariants: bool,
pub enable_verbose_logging: bool,
pub enable_performance_profiling: bool,
pub log_rejections: bool,
}Expand description
Debug and development configuration
Controls debug assertions, runtime checks, and development features. These options are safe to enable in production but may impact performance.
Fields§
§enable_runtime_assertions: boolEnable runtime assertions (debug_assert! statements) Default: false (enabled automatically in debug builds)
enable_runtime_invariants: boolEnable runtime invariant checks (additional safety checks) Default: false
enable_verbose_logging: boolEnable verbose logging for consensus operations Default: false
enable_performance_profiling: boolEnable performance profiling (timing measurements) Default: false
log_rejections: boolLog all rejected transactions/blocks (for debugging) Default: false
Trait Implementations§
Source§impl Clone for DebugConfig
impl Clone for DebugConfig
Source§fn clone(&self) -> DebugConfig
fn clone(&self) -> DebugConfig
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 DebugConfig
impl Debug for DebugConfig
Source§impl Default for DebugConfig
impl Default for DebugConfig
Source§fn default() -> DebugConfig
fn default() -> DebugConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DebugConfig
impl<'de> Deserialize<'de> for DebugConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DebugConfig
impl PartialEq for DebugConfig
Source§impl Serialize for DebugConfig
impl Serialize for DebugConfig
impl Eq for DebugConfig
impl StructuralPartialEq for DebugConfig
Auto Trait Implementations§
impl Freeze for DebugConfig
impl RefUnwindSafe for DebugConfig
impl Send for DebugConfig
impl Sync for DebugConfig
impl Unpin for DebugConfig
impl UnsafeUnpin for DebugConfig
impl UnwindSafe for DebugConfig
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