[−][src]Struct zipkin::trace_context::Builder
A builder type for TraceContext
s.
Methods
impl Builder
[src]
pub fn trace_id(&mut self, trace_id: TraceId) -> &mut Builder
[src]
Sets the trace ID of this context.
pub fn parent_id(&mut self, parent_id: SpanId) -> &mut Builder
[src]
Sets the ID of the parent span of this context.
Defaults to None
.
pub fn span_id(&mut self, span_id: SpanId) -> &mut Builder
[src]
Sets the ID of the span of this context.
pub fn sampling_flags(&mut self, flags: SamplingFlags) -> &mut Builder
[src]
Sets the sampling flags for this context.
pub fn sampled(&mut self, sampled: bool) -> &mut Builder
[src]
Sets the sampling request for this context.
Defaults to None
.
pub fn debug(&mut self, debug: bool) -> &mut Builder
[src]
Sets the debug flag for this request.
Defaults to false
.
pub fn build(&self) -> TraceContext
[src]
Trait Implementations
impl From<TraceContext> for Builder
[src]
fn from(c: TraceContext) -> Builder
[src]
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,