Enum log_reload::ReloadError
source · pub enum ReloadError {
Gone,
Poisoned,
}
Expand description
An error which occurred while reloading the logger.
Variants§
Gone
The logger referenced by the reload handle was dropped meanwhile.
Poisoned
The lock protecting the inner logger referenced by the reload is poisoned.
Note that this is an error because we currently can’t recover from a
poisoned RwLock
in stable rust, as RwLock::clear_poison
is still
experimental.
Once this method stabilizes reloading can simply overwrite any poisoned data and clear the poison flag to resume logging. At this point this error condition will be removed.
See https://github.com/rust-lang/rust/issues/96469 for stabilization of
RwLock::clear_poison
.
Trait Implementations§
source§impl Clone for ReloadError
impl Clone for ReloadError
source§fn clone(&self) -> ReloadError
fn clone(&self) -> ReloadError
Returns a copy 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 ReloadError
impl Debug for ReloadError
source§impl Display for ReloadError
impl Display for ReloadError
source§impl Error for ReloadError
impl Error for ReloadError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
impl Copy for ReloadError
Auto Trait Implementations§
impl RefUnwindSafe for ReloadError
impl Send for ReloadError
impl Sync for ReloadError
impl Unpin for ReloadError
impl UnwindSafe for ReloadError
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