pub enum TraceError {
Closed {
trace_id: TraceId,
event_id: EventId,
},
AlreadyClosed {
trace_id: TraceId,
},
}Expand description
Errors raised by TraceAssembler.
Variants§
Closed
Attempted to attach an event to a closed (sealed) trace.
Fields
AlreadyClosed
Attempted to close a trace that was already closed.
Trait Implementations§
Source§impl Clone for TraceError
impl Clone for TraceError
Source§fn clone(&self) -> TraceError
fn clone(&self) -> TraceError
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 TraceError
impl Debug for TraceError
Source§impl Display for TraceError
impl Display 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
Source§fn eq(&self, other: &TraceError) -> bool
fn eq(&self, other: &TraceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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