pub struct Percentile { /* private fields */ }Expand description
The value at the specified percentile within the time window.
Implementations§
Source§impl Percentile
impl Percentile
Sourcepub fn builder() -> Builder<PercentileStage>
pub fn builder() -> Builder<PercentileStage>
Returns a new builder.
Source§impl Percentile
impl Percentile
Sourcepub fn new(percentile: DoubleConstant) -> Self
pub fn new(percentile: DoubleConstant) -> Self
Constructs a new instance of the type.
Sourcepub fn percentile(&self) -> &DoubleConstant
pub fn percentile(&self) -> &DoubleConstant
Percentile to compute, in range [0, 1]. E.g. 0.5 for median, 0.95 for p95.
Trait Implementations§
Source§impl Clone for Percentile
impl Clone for Percentile
Source§fn clone(&self) -> Percentile
fn clone(&self) -> Percentile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Percentile
impl Debug for Percentile
Source§impl<'de> Deserialize<'de> for Percentile
impl<'de> Deserialize<'de> for Percentile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Percentile> for Builder<Complete>
impl From<Percentile> for Builder<Complete>
Source§fn from(v: Percentile) -> Self
fn from(v: Percentile) -> Self
Converts to this type from the input type.
Source§impl Hash for Percentile
impl Hash for Percentile
Source§impl Ord for Percentile
impl Ord for Percentile
Source§impl PartialEq for Percentile
impl PartialEq for Percentile
Source§impl PartialOrd for Percentile
impl PartialOrd for Percentile
Source§impl Serialize for Percentile
impl Serialize for Percentile
impl Eq for Percentile
Auto Trait Implementations§
impl Freeze for Percentile
impl RefUnwindSafe for Percentile
impl Send for Percentile
impl Sync for Percentile
impl Unpin for Percentile
impl UnsafeUnpin for Percentile
impl UnwindSafe for Percentile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request