[][src]Struct rustracing::span::StartSpanOptions

pub struct StartSpanOptions<'a, S: 'a, T: 'a> { /* fields omitted */ }

Options for starting a span.

Methods

impl<'a, S: 'a, T: 'a> StartSpanOptions<'a, S, T> where
    S: Sampler<T>, 
[src]

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]

Adds the ChildOf reference to this span.

pub fn follows_from<C>(self, context: &C) -> Self where
    C: MaybeAsRef<SpanContext<T>>,
    T: Clone
[src]

Adds the FollowsFrom reference to this span.

pub fn start(self) -> Span<T> where
    T: for<'b> From<CandidateSpan<'b, T>>, 
[src]

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

impl<'a, S, T> Sync for StartSpanOptions<'a, S, T> where
    S: Sync,
    T: Send + Sync

impl<'a, S, T> Unpin for StartSpanOptions<'a, S, T> where
    T: Unpin

impl<'a, S, T> UnwindSafe for StartSpanOptions<'a, S, T> where
    S: RefUnwindSafe,
    T: UnwindSafe

impl<'a, S, T> RefUnwindSafe for StartSpanOptions<'a, S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,