pub enum GlobalSettingsError {
AlreadySet,
SettingNotYetSet,
AcquireReadLockFailed,
}Expand description
Errors that can occur when accessing global settings.
Variants§
AlreadySet
Settings were already initialized (second call to set_global_settings).
SettingNotYetSet
Settings have not been initialized yet.
AcquireReadLockFailed
The RwLock is poisoned (a thread panicked while holding the lock).
Trait Implementations§
Source§impl Clone for GlobalSettingsError
impl Clone for GlobalSettingsError
Source§fn clone(&self) -> GlobalSettingsError
fn clone(&self) -> GlobalSettingsError
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 GlobalSettingsError
impl Debug for GlobalSettingsError
Source§impl Display for GlobalSettingsError
impl Display for GlobalSettingsError
Source§impl Error for GlobalSettingsError
impl Error for GlobalSettingsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for GlobalSettingsError
impl RefUnwindSafe for GlobalSettingsError
impl Send for GlobalSettingsError
impl Sync for GlobalSettingsError
impl Unpin for GlobalSettingsError
impl UnsafeUnpin for GlobalSettingsError
impl UnwindSafe for GlobalSettingsError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more