[−][src]Struct opentracingrust::FinishedSpan
A Span
that represents a finished operation.
The span can no longer be altered since the operation is finished.
Tracer
s must provide a way to submit FinishedSpan
a to the distributed tracer.
Methods
impl FinishedSpan
[src]
pub fn context(&self) -> &SpanContext
[src]
Access the operation's SpanContext
.
pub fn finish_time(&self) -> &SystemTime
[src]
Access the SystemTime
the Span
was finished.
pub fn logs(&self) -> &Vec<Log>
[src]
Access the logs attached to this span.
pub fn name(&self) -> &String
[src]
Access the name of the operation.
pub fn references(&self) -> &Vec<SpanReference>
[src]
Access all the SpanContext
s and their relationship with this span.
pub fn start_time(&self) -> &SystemTime
[src]
Access the SystemTime
the Span
was started.
pub fn tags(&self) -> &SpanTags
[src]
Access the tags attached to this span.
Trait Implementations
Auto Trait Implementations
impl !Sync for FinishedSpan
impl Unpin for FinishedSpan
impl Send for FinishedSpan
impl !UnwindSafe for FinishedSpan
impl !RefUnwindSafe for FinishedSpan
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,