Struct zipkin::SamplingFlags
[−]
[src]
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 Debug for SamplingFlags
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for SamplingFlags
[src]
impl Clone for SamplingFlags
[src]
fn clone(&self) -> SamplingFlags
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for SamplingFlags
[src]
fn default() -> SamplingFlags
[src]
Returns the "default value" for a type. Read more
impl From<SamplingFlags> for Builder
[src]
fn from(flags: SamplingFlags) -> Builder
[src]
Performs the conversion.