Struct SentryTrace
pub struct SentryTrace { /* private fields */ }๐Deprecated:
Please use TracePropagationContext instead
Expand description
A container for sentry-trace data.
Implementationsยง
ยงimpl SentryTrace
impl SentryTrace
pub fn new(
trace_id: TraceId,
span_id: SpanId,
sampled: Option<bool>,
) -> SentryTrace
pub fn new( trace_id: TraceId, span_id: SpanId, sampled: Option<bool>, ) -> SentryTrace
Creates a new SentryTrace from the provided parameters
Trait Implementationsยง
ยงimpl Clone for SentryTrace
impl Clone for SentryTrace
ยงfn clone(&self) -> SentryTrace
fn clone(&self) -> SentryTrace
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 SentryTrace
ยงimpl Debug for SentryTrace
impl Debug for SentryTrace
ยงimpl Default for SentryTrace
impl Default for SentryTrace
ยงfn default() -> SentryTrace
fn default() -> SentryTrace
Returns the โdefault valueโ for a type. Read more
ยงimpl Display for SentryTrace
impl Display for SentryTrace
ยงimpl From<SentryTrace> for TracePropagationContext
impl From<SentryTrace> for TracePropagationContext
ยงfn from(trace: SentryTrace) -> TracePropagationContext
fn from(trace: SentryTrace) -> TracePropagationContext
Converts to this type from the input type.
ยงimpl PartialEq for SentryTrace
impl PartialEq for SentryTrace
impl StructuralPartialEq for SentryTrace
Auto Trait Implementationsยง
impl Freeze for SentryTrace
impl RefUnwindSafe for SentryTrace
impl Send for SentryTrace
impl Sync for SentryTrace
impl Unpin for SentryTrace
impl UnsafeUnpin for SentryTrace
impl UnwindSafe for SentryTrace
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> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self> โ
fn instrument(self, span: Span) -> Instrumented<Self> โ
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more