pub struct SimpleERGlobalSettings {}Expand description
Global configuration for the simple error report handler.
Set once at application startup via
GlobalSettings::set_global_settings.
Trait Implementations§
Source§impl Clone for SimpleERGlobalSettings
impl Clone for SimpleERGlobalSettings
Source§fn clone(&self) -> SimpleERGlobalSettings
fn clone(&self) -> SimpleERGlobalSettings
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 SimpleERGlobalSettings
impl Debug for SimpleERGlobalSettings
Source§impl Default for SimpleERGlobalSettings
impl Default for SimpleERGlobalSettings
Source§fn default() -> SimpleERGlobalSettings
fn default() -> SimpleERGlobalSettings
Returns the “default value” for a type. Read more
Source§impl GlobalSettings for SimpleERGlobalSettings
impl GlobalSettings for SimpleERGlobalSettings
Source§type Setting = SimpleERGlobalSettings
type Setting = SimpleERGlobalSettings
The settings type stored in the global lock.
Source§fn once_lock() -> &'static OnceLock<RwLock<Self::Setting>>
fn once_lock() -> &'static OnceLock<RwLock<Self::Setting>>
Return a reference to the static
OnceLock that holds this setting.Source§fn get_setting_object_name() -> &'static str
fn get_setting_object_name() -> &'static str
Return a human-readable name for this settings object (used in error messages).
Source§fn set_global_settings(setting: Self::Setting) -> Result<(), ErrorReport>where
<Self as GlobalSettings>::Setting: 'static,
fn set_global_settings(setting: Self::Setting) -> Result<(), ErrorReport>where
<Self as GlobalSettings>::Setting: 'static,
Initialize the global simple report configuration. Must be called once at startup. Read more
Source§fn get_global_settings() -> Result<RwLockReadGuard<'static, Self::Setting>, ErrorReport>
fn get_global_settings() -> Result<RwLockReadGuard<'static, Self::Setting>, ErrorReport>
Read the global simple report configuration. Returns an error if not yet set.
Auto Trait Implementations§
impl Freeze for SimpleERGlobalSettings
impl RefUnwindSafe for SimpleERGlobalSettings
impl Send for SimpleERGlobalSettings
impl Sync for SimpleERGlobalSettings
impl Unpin for SimpleERGlobalSettings
impl UnsafeUnpin for SimpleERGlobalSettings
impl UnwindSafe for SimpleERGlobalSettings
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