pub struct FeatureFlags {
pub detailed_metrics: bool,
pub request_logging: bool,
pub connection_logging: bool,
pub slow_request_warnings: bool,
pub slow_request_threshold_ms: u64,
pub broadcast_enabled: bool,
pub writes_enabled: bool,
pub diagnostics_enabled: bool,
}Expand description
Feature flags for runtime feature toggling.
Fields§
§detailed_metrics: boolEnable detailed metrics.
request_logging: boolEnable request logging.
connection_logging: boolEnable connection logging.
slow_request_warnings: boolEnable slow request warnings.
slow_request_threshold_ms: u64Slow request threshold.
broadcast_enabled: boolEnable broadcast (unit ID 0) support.
writes_enabled: boolEnable write operations.
diagnostics_enabled: boolEnable diagnostic function codes.
Implementations§
Source§impl FeatureFlags
impl FeatureFlags
Sourcepub fn production() -> Self
pub fn production() -> Self
Production-ready defaults.
Sourcepub fn development() -> Self
pub fn development() -> Self
Development/debug defaults.
Trait Implementations§
Source§impl Clone for FeatureFlags
impl Clone for FeatureFlags
Source§fn clone(&self) -> FeatureFlags
fn clone(&self) -> FeatureFlags
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 FeatureFlags
impl Debug for FeatureFlags
Source§impl Default for FeatureFlags
impl Default for FeatureFlags
Source§fn default() -> FeatureFlags
fn default() -> FeatureFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FeatureFlags
impl<'de> Deserialize<'de> for FeatureFlags
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
Auto Trait Implementations§
impl Freeze for FeatureFlags
impl RefUnwindSafe for FeatureFlags
impl Send for FeatureFlags
impl Sync for FeatureFlags
impl Unpin for FeatureFlags
impl UnsafeUnpin for FeatureFlags
impl UnwindSafe for FeatureFlags
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