pub enum MessagesFilterReloadError {
Parse {
spec: String,
reason: String,
},
SubscriberNotInstalled,
Reload(String),
}Expand description
Why a reload_messages_filter call failed.
Variants§
Parse
The directive didn’t parse as EnvFilter syntax. The
typed-option validator already rejects bad strings at
:set time; reaching this variant means the validator
missed something.
SubscriberNotInstalled
install_messages_subscriber was never called for this
process. Production boot always installs; test paths
that exercise the App without going through App::new
can observe this.
Reload(String)
tracing_subscriber::reload::Handle::modify returned
an error (typically because the underlying layer was
dropped). Should not happen in production but the
error type carries the message for diagnostics.
Trait Implementations§
Source§impl Debug for MessagesFilterReloadError
impl Debug for MessagesFilterReloadError
Source§impl Display for MessagesFilterReloadError
impl Display for MessagesFilterReloadError
Source§impl Error for MessagesFilterReloadError
impl Error for MessagesFilterReloadError
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 MessagesFilterReloadError
impl RefUnwindSafe for MessagesFilterReloadError
impl Send for MessagesFilterReloadError
impl Sync for MessagesFilterReloadError
impl Unpin for MessagesFilterReloadError
impl UnsafeUnpin for MessagesFilterReloadError
impl UnwindSafe for MessagesFilterReloadError
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