[][src]Trait tokio_trace::span::AsId

pub trait AsId: Sealed {
    fn as_id(&self) -> Option<&Id>;
}

Trait implemented by types which have a span Id.

Required methods

fn as_id(&self) -> Option<&Id>

Returns the Id of the span that self corresponds to, or None if this corresponds to a disabled span.

Loading content...

Implementations on Foreign Types

impl AsId for Option<Id>[src]

impl<'a> AsId for &'a Option<Id>[src]

Loading content...

Implementors

impl AsId for Id[src]

impl AsId for Span[src]

impl<'a> AsId for &'a Id[src]

impl<'a> AsId for &'a Span[src]

Loading content...