[][src]Struct zipkin::SamplingFlags

pub struct SamplingFlags { /* fields omitted */ }

Flags used to control sampling.

Methods

impl SamplingFlags[src]

pub fn builder() -> Builder[src]

Returns a builder used to construct SamplingFlags.

pub fn sampled(self) -> Option<bool>[src]

Determines if sampling has been requested for this context.

A value of None indicates that the service working in the context is responsible for determining if it should be sampled.

pub fn debug(self) -> bool[src]

Determines if this context is in debug mode.

Debug contexts should always be sampled, regardless of the value of sampled().

Trait Implementations

impl From<SamplingFlags> for Builder[src]

impl Clone for SamplingFlags[src]

impl Copy for SamplingFlags[src]

impl Default for SamplingFlags[src]

impl Eq for SamplingFlags[src]

impl PartialEq<SamplingFlags> for SamplingFlags[src]

impl Debug for SamplingFlags[src]

impl StructuralPartialEq for SamplingFlags[src]

impl StructuralEq for SamplingFlags[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,