pub enum TraceContextError {
InvalidFormat,
InvalidVersion,
InvalidTraceId,
InvalidParentId,
InvalidTraceFlags,
AllZeroTraceId,
AllZeroParentId,
}Expand description
Trace Context parsing errors
Variants§
InvalidFormat
Invalid format (must be version-trace_id-parent_id-flags)
InvalidVersion
Invalid version (must be 00)
InvalidTraceId
Invalid trace_id (must be 32 hex chars)
InvalidParentId
Invalid parent_id (must be 16 hex chars)
InvalidTraceFlags
Invalid trace_flags (must be 2 hex chars)
AllZeroTraceId
Trace ID is all zeros (forbidden by W3C spec)
AllZeroParentId
Parent ID is all zeros (forbidden by W3C spec)
Trait Implementations§
Source§impl Clone for TraceContextError
impl Clone for TraceContextError
Source§fn clone(&self) -> TraceContextError
fn clone(&self) -> TraceContextError
Returns a duplicate 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 TraceContextError
impl Debug for TraceContextError
Source§impl Display for TraceContextError
impl Display for TraceContextError
Source§impl Error for TraceContextError
impl Error for TraceContextError
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 TraceContextError
impl PartialEq for TraceContextError
impl Eq for TraceContextError
impl StructuralPartialEq for TraceContextError
Auto Trait Implementations§
impl Freeze for TraceContextError
impl RefUnwindSafe for TraceContextError
impl Send for TraceContextError
impl Sync for TraceContextError
impl Unpin for TraceContextError
impl UnsafeUnpin for TraceContextError
impl UnwindSafe for TraceContextError
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