pub enum HistogramMessage {
SetData(Vec<f64>),
PushData(f64),
PushDataBatch(Vec<f64>),
Clear,
SetBinCount(usize),
SetBinMethod(BinMethod),
SetRange(Option<f64>, Option<f64>),
}Expand description
Messages that can be sent to a Histogram.
Variants§
SetData(Vec<f64>)
Replace all data points.
PushData(f64)
Add a single data point.
PushDataBatch(Vec<f64>)
Add multiple data points.
Clear
Clear all data.
SetBinCount(usize)
Change the number of bins (sets bin method to Fixed).
SetBinMethod(BinMethod)
Change the binning strategy.
SetRange(Option<f64>, Option<f64>)
Set the manual min/max range.
Trait Implementations§
Source§impl Clone for HistogramMessage
impl Clone for HistogramMessage
Source§fn clone(&self) -> HistogramMessage
fn clone(&self) -> HistogramMessage
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 HistogramMessage
impl Debug for HistogramMessage
Source§impl<'de> Deserialize<'de> for HistogramMessage
impl<'de> Deserialize<'de> for HistogramMessage
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 PartialEq for HistogramMessage
impl PartialEq for HistogramMessage
Source§impl Serialize for HistogramMessage
impl Serialize for HistogramMessage
impl StructuralPartialEq for HistogramMessage
Auto Trait Implementations§
impl Freeze for HistogramMessage
impl RefUnwindSafe for HistogramMessage
impl Send for HistogramMessage
impl Sync for HistogramMessage
impl Unpin for HistogramMessage
impl UnsafeUnpin for HistogramMessage
impl UnwindSafe for HistogramMessage
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<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