pub enum TraceError {
Length,
Layout,
NotHex,
ForbiddenVersion,
ZeroId,
}Expand description
Why a traceparent value was rejected.
Variants§
Length
Not exactly 55 bytes (the only length defined for version 00).
Layout
Hyphens are not at offsets 2, 35 and 52.
NotHex
A field contained a byte that is not a lowercase hex digit.
ForbiddenVersion
Version ff is forbidden by the specification.
ZeroId
trace_id or span_id was all zero.
Trait Implementations§
Source§impl Clone for TraceError
impl Clone for TraceError
impl Copy 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 Freeze for TraceError
impl RefUnwindSafe for TraceError
impl Send for TraceError
impl Sync for TraceError
impl Unpin for TraceError
impl UnsafeUnpin for TraceError
impl UnwindSafe for TraceError
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