[−][src]Struct zipkin::sampling_flags::SamplingFlags
Flags used to control sampling.
Methods
impl SamplingFlags
[src]
impl SamplingFlags
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 From<SamplingFlags> for Builder
fn from(flags: SamplingFlags) -> Builder | [src] |
impl Eq for SamplingFlags
[src]
impl Eq for SamplingFlags
impl Copy for SamplingFlags
[src]
impl Copy for SamplingFlags
impl Clone for SamplingFlags
[src]
impl Clone for SamplingFlags
fn clone(&self) -> SamplingFlags | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl PartialEq<SamplingFlags> for SamplingFlags
[src]
impl PartialEq<SamplingFlags> for SamplingFlags
fn eq(&self, other: &SamplingFlags) -> bool | [src] |
fn ne(&self, other: &SamplingFlags) -> bool | [src] |
impl Default for SamplingFlags
[src]
impl Default for SamplingFlags
fn default() -> SamplingFlags | [src] |
impl Debug for SamplingFlags
[src]
impl Debug for SamplingFlags
Auto Trait Implementations
impl Send for SamplingFlags
impl Send for SamplingFlags
impl Sync for SamplingFlags
impl Sync for SamplingFlags
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,