#[non_exhaustive]pub enum TraceError {
UnknownTrace(String),
TooManyNames(usize),
TooManySecrets(usize),
MissingSink,
InsideSink,
}Expand description
Errors from parsing trace settings or building a tracer. Input: caller settings. Output: one variant naming what was wrong. Later releases may add variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for TraceError
impl Clone for TraceError
Source§impl Debug for TraceError
impl Debug for TraceError
Source§impl Display for TraceError
impl Display for TraceError
impl Eq for TraceError
Source§impl Error for TraceError
impl Error for TraceError
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()
Source§impl PartialEq for TraceError
impl PartialEq for TraceError
impl StructuralPartialEq for TraceError
Auto Trait Implementations§
impl Forget for TraceError
impl Freeze for TraceError
impl Move for TraceError
impl RefUnwindSafe for TraceError
impl Send for TraceErrorwhere
RawVecInner: Send,
impl Sync for TraceErrorwhere
RawVecInner: Sync,
impl Unpin for TraceError
impl UnsafeUnpin for TraceError
impl UnwindSafe for TraceErrorwhere
RawVecInner: UnwindSafe,
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