pub enum SamplingInterval {
Iterations(NonZeroU64),
}Expand description
Coordinate-aware interval used to select states for one output stream.
The noun variant identifies the coordinate on which the interval is
measured. The current storage format supports iteration-based sampling;
adding physical-time sampling later will not require overloading the word
step or changing the surrounding stream API.
Human-authored configuration may use the concise JSON value 10 for every
ten iterations. Deserialization also accepts the stable tagged form
{"iterations": 10} emitted by serialization.
Variants§
Iterations(NonZeroU64)
Select iteration zero and each iteration divisible by this interval.
Implementations§
Source§impl SamplingInterval
impl SamplingInterval
Sourcepub const fn iterations(interval: u64) -> Option<Self>
pub const fn iterations(interval: u64) -> Option<Self>
Creates an iteration interval, returning None for zero.
Trait Implementations§
Source§impl Clone for SamplingInterval
impl Clone for SamplingInterval
Source§fn clone(&self) -> SamplingInterval
fn clone(&self) -> SamplingInterval
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 moreimpl Copy for SamplingInterval
Source§impl Debug for SamplingInterval
impl Debug for SamplingInterval
Source§impl<'de> Deserialize<'de> for SamplingInterval
impl<'de> Deserialize<'de> for SamplingInterval
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
impl Eq for SamplingInterval
Source§impl PartialEq for SamplingInterval
impl PartialEq for SamplingInterval
Source§impl Serialize for SamplingInterval
impl Serialize for SamplingInterval
impl StructuralPartialEq for SamplingInterval
Auto Trait Implementations§
impl Freeze for SamplingInterval
impl RefUnwindSafe for SamplingInterval
impl Send for SamplingInterval
impl Sync for SamplingInterval
impl Unpin for SamplingInterval
impl UnsafeUnpin for SamplingInterval
impl UnwindSafe for SamplingInterval
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more