pub enum SamplingRate {
Headers,
Percent(u8),
}Expand description
How often an exported service samples latency.
Variants§
Headers
Sample only when the request carries the latency header (serialized as
the string "headers").
Percent(u8)
Sample this percentage (1–100) of requests.
Trait Implementations§
Source§impl Clone for SamplingRate
impl Clone for SamplingRate
Source§fn clone(&self) -> SamplingRate
fn clone(&self) -> SamplingRate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SamplingRate
impl RefUnwindSafe for SamplingRate
impl Send for SamplingRate
impl Sync for SamplingRate
impl Unpin for SamplingRate
impl UnsafeUnpin for SamplingRate
impl UnwindSafe for SamplingRate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more