pub enum TraceParseError {
Show 15 variants
NonStringMeta {
field: &'static str,
},
ValueTooLong {
field: &'static str,
actual: usize,
max: usize,
},
TooManyBaggageMembers {
actual: usize,
max: usize,
},
TooManyTraceStateMembers {
actual: usize,
max: usize,
},
InvalidTraceParentLength {
actual: usize,
},
InvalidTraceParentFormat,
UnsupportedVersion,
InvalidTraceId,
InvalidSpanId,
TraceStateRequiresTraceParent,
InvalidTraceState,
DuplicateTraceStateKey,
InvalidBaggageMember,
MultipleHeaderValues {
field: &'static str,
},
InvalidHeaderValue {
field: &'static str,
},
}Variants§
NonStringMeta
ValueTooLong
TooManyBaggageMembers
TooManyTraceStateMembers
InvalidTraceParentLength
InvalidTraceParentFormat
UnsupportedVersion
InvalidTraceId
InvalidSpanId
TraceStateRequiresTraceParent
InvalidTraceState
DuplicateTraceStateKey
InvalidBaggageMember
MultipleHeaderValues
InvalidHeaderValue
Implementations§
Source§impl TraceParseError
impl TraceParseError
pub fn safe_reason(&self) -> String
Trait Implementations§
Source§impl Clone for TraceParseError
impl Clone for TraceParseError
Source§fn clone(&self) -> TraceParseError
fn clone(&self) -> TraceParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TraceParseError
impl Debug for TraceParseError
Source§impl Display for TraceParseError
impl Display for TraceParseError
Source§impl Error for TraceParseError
impl Error for TraceParseError
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 TraceParseError
impl PartialEq for TraceParseError
Source§fn eq(&self, other: &TraceParseError) -> bool
fn eq(&self, other: &TraceParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TraceParseError
impl StructuralPartialEq for TraceParseError
Auto Trait Implementations§
impl Freeze for TraceParseError
impl RefUnwindSafe for TraceParseError
impl Send for TraceParseError
impl Sync for TraceParseError
impl Unpin for TraceParseError
impl UnsafeUnpin for TraceParseError
impl UnwindSafe for TraceParseError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.