pub enum TraceContextError {
InvalidFormat,
UnsupportedVersion,
ZeroTraceId,
ZeroSpanId,
}Expand description
Error returned when parsing a traceparent header fails.
Variants§
InvalidFormat
The overall format is wrong (wrong number of fields, wrong lengths, etc.).
UnsupportedVersion
The version byte is not supported (only 00 is currently valid).
ZeroTraceId
The trace-id field is all zeros, which the spec forbids.
ZeroSpanId
The span-id field is all zeros, which the spec forbids.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP