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.
ReloadHandle::modify
will return this error if the lock is poisoned;
use ReloadHandle::replace
to overwrite the logger and clear the
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)>
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()
impl Copy for ReloadError
Auto Trait Implementations§
impl Freeze for ReloadError
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