Struct opentracing_rs_core::Span
source · Implementations
sourceimpl<S> Span<S>where
S: 'static + Send + Sync,
impl<S> Span<S>where
S: 'static + Send + Sync,
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>
) -> Selfwhere
O: Into<String>,
pub fn context(&self) -> &SpanContext<S>
pub fn set_operation_name<O>(&mut self, op_name: O)where
O: Into<String>,
pub fn operation_name(&self) -> &str
pub fn set_tag(&mut self, tag: Tag)
pub fn is_finished(&self) -> bool
pub fn finish(&mut self)
Trait Implementations
Auto Trait Implementations
impl<S> !RefUnwindSafe for Span<S>
impl<S> Send for Span<S>
impl<S> Sync for Span<S>
impl<S> Unpin for Span<S>where
S: Unpin,
impl<S> !UnwindSafe for Span<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more