pub struct ExecutorConfig {
pub enable_metrics: bool,
pub disable_backtrace: bool,
}Expand description
Executor configuration
Configures various execution options for the double-checked lock executor, including performance metrics and error handling.
§Examples
use qubit_lock::double_checked::ExecutorConfig;
let config = ExecutorConfig::default();
assert!(!config.enable_metrics);
assert!(!config.disable_backtrace);§Author
Haixing Hu
Fields§
§enable_metrics: boolWhether to enable performance metrics collection
disable_backtrace: boolWhether to disable error backtrace for performance
Trait Implementations§
Source§impl Clone for ExecutorConfig
impl Clone for ExecutorConfig
Source§fn clone(&self) -> ExecutorConfig
fn clone(&self) -> ExecutorConfig
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 ExecutorConfig
impl Debug for ExecutorConfig
Auto Trait Implementations§
impl Freeze for ExecutorConfig
impl RefUnwindSafe for ExecutorConfig
impl Send for ExecutorConfig
impl Sync for ExecutorConfig
impl Unpin for ExecutorConfig
impl UnsafeUnpin for ExecutorConfig
impl UnwindSafe for ExecutorConfig
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