pub struct InvalidSpanObjectType(pub u8);Expand description
Error returned when an invalid u8 value is converted to SpanObjectType.
Tuple Fields§
§0: u8Trait Implementations§
Source§impl Clone for InvalidSpanObjectType
impl Clone for InvalidSpanObjectType
Source§fn clone(&self) -> InvalidSpanObjectType
fn clone(&self) -> InvalidSpanObjectType
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 moreimpl Copy for InvalidSpanObjectType
Source§impl Debug for InvalidSpanObjectType
impl Debug for InvalidSpanObjectType
Source§impl Display for InvalidSpanObjectType
impl Display for InvalidSpanObjectType
impl Eq for InvalidSpanObjectType
Source§impl Error for InvalidSpanObjectType
impl Error for InvalidSpanObjectType
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 InvalidSpanObjectType
impl PartialEq for InvalidSpanObjectType
Source§fn eq(&self, other: &InvalidSpanObjectType) -> bool
fn eq(&self, other: &InvalidSpanObjectType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvalidSpanObjectType
Auto Trait Implementations§
impl Freeze for InvalidSpanObjectType
impl RefUnwindSafe for InvalidSpanObjectType
impl Send for InvalidSpanObjectType
impl Sync for InvalidSpanObjectType
impl Unpin for InvalidSpanObjectType
impl UnsafeUnpin for InvalidSpanObjectType
impl UnwindSafe for InvalidSpanObjectType
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> MaybeSendSync for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.