pub enum Operator {
Raw,
Optimized(u32),
Mean(u32),
Nth(u32),
}Expand description
Server-side processing for a data request.
Variants§
Raw
Every archived sample.
Optimized(u32)
optimized_N: about N points; raw when there are at most N samples,
else [mean, std, min, max, count] bins.
Mean(u32)
mean_N: the mean of each N-second bin.
Nth(u32)
nth_N: every Nth raw sample.
Implementations§
Source§impl Operator
impl Operator
Sourcepub fn wrap(&self, pv: &str) -> String
pub fn wrap(&self, pv: &str) -> String
The pv parameter for pv: optimized_1200(SR-DI-DCCT-01:SIGNAL).
Sourcepub fn for_width(width_px: f32) -> Self
pub fn for_width(width_px: f32) -> Self
The operator to fetch for a plot width_px device pixels wide:
optimized with one bin per pixel, at most MAX_BINS. Pass the
width of the whole window fetched: when it is padded beyond the
part shown, scale the plot width by the padding (archiveview
fetches 1.5 times the visible span, so 1.5 times the width). Finer
bins only alias: their means zig-zag into a solid block where the
min/max envelope already shows the extremes.
Trait Implementations§
impl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnsafeUnpin for Operator
impl UnwindSafe for Operator
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.