[][src]Struct opentracing_rs::Span

pub struct Span<S> where
    S: 'static + Sync + Send
{ /* fields omitted */ }

Methods

impl<S> Span<S> where
    S: 'static + Send + Sync
[src]

pub fn new<O>(
    sender: UnboundedSender<Span<S>>,
    operation_name: O,
    start_time: SystemTime,
    tags: Vec<Tag>,
    references: Vec<SpanReference<S>>,
    state: S,
    baggage_items: Vec<BaggageItem>
) -> Span<S> where
    O: Into<String>, 
[src]

pub fn context(&self) -> &SpanContext<S>[src]

pub fn set_operation_name<O>(&mut self, op_name: O) where
    O: Into<String>, 
[src]

pub fn operation_name(&self) -> &str[src]

pub fn set_tag(&mut self, tag: Tag)[src]

pub fn is_finished(&self) -> bool[src]

pub fn finish(&mut self)[src]

Trait Implementations

impl<S> Drop for Span<S> where
    S: 'static + Send + Sync
[src]

impl<S> Debug for Span<S> where
    S: Debug + 'static + Sync + Send
[src]

Auto Trait Implementations

impl<S> Send for Span<S>

impl<S> Sync for Span<S>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Erased for T