Struct zipkin::sampling_flags::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
A builder type for SamplingFlags
.
Methods
impl Builder
[src]
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) -> SamplingFlags
[src]
Constructs SamplingFlags
.
Trait Implementations
impl From<SamplingFlags> for Builder
[src]
fn from(flags: SamplingFlags) -> Builder
[src]
Performs the conversion.