[−][src]Struct rustracing::span::StartSpanOptions
Options for starting a span.
Methods
impl<'a, S: 'a, T: 'a> StartSpanOptions<'a, S, T> where
S: Sampler<T>,
[src]
S: Sampler<T>,
pub fn start_time(self, time: SystemTime) -> Self
[src]
Sets the start time of this span.
pub fn tag(self, tag: Tag) -> Self
[src]
Sets the tag to this span.
pub fn child_of<C>(self, context: &C) -> Self where
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
[src]
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
Adds the ChildOf
reference to this span.
pub fn follows_from<C>(self, context: &C) -> Self where
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
[src]
C: MaybeAsRef<SpanContext<T>>,
T: Clone,
Adds the FollowsFrom
reference to this span.
pub fn start(self) -> Span<T> where
T: for<'b> From<CandidateSpan<'b, T>>,
[src]
T: for<'b> From<CandidateSpan<'b, T>>,
Starts a new span.
pub fn start_with_state(self, state: T) -> Span<T>
[src]
Starts a new span with the explicit state
.
Trait Implementations
impl<'a, S: Debug + 'a, T: Debug + 'a> Debug for StartSpanOptions<'a, S, T>
[src]
Auto Trait Implementations
impl<'a, S, T> Send for StartSpanOptions<'a, S, T> where
S: Sync,
T: Send,
S: Sync,
T: Send,
impl<'a, S, T> Sync for StartSpanOptions<'a, S, T> where
S: Sync,
T: Send + Sync,
S: Sync,
T: Send + Sync,
impl<'a, S, T> Unpin for StartSpanOptions<'a, S, T> where
T: Unpin,
T: Unpin,
impl<'a, S, T> UnwindSafe for StartSpanOptions<'a, S, T> where
S: RefUnwindSafe,
T: UnwindSafe,
S: RefUnwindSafe,
T: UnwindSafe,
impl<'a, S, T> RefUnwindSafe for StartSpanOptions<'a, S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,