Struct rove::data_switch::SeriesCache
source · pub struct SeriesCache {
pub start_time: Timestamp,
pub period: RelativeDuration,
pub data: Vec<Option<f32>>,
pub num_leading_points: u8,
}
Expand description
Container of series data
Fields§
§start_time: Timestamp
Time of the first observation in data
period: RelativeDuration
Period of the timeseries, i.e. the time gap between successive elements
data: Vec<Option<f32>>
Data points of the timeseries in chronological order
None
s represent gaps in the series
num_leading_points: u8
The number of extra points in the series before the data to be QCed
These points are needed because certain timeseries tests need more context around points to be able to QC them. The scheduler looks at the list of requested tests to figure out how many leading points will be needed, and requests a SeriesCache from the DataSwitch with that number of leading points
Trait Implementations§
source§impl Clone for SeriesCache
impl Clone for SeriesCache
source§fn clone(&self) -> SeriesCache
fn clone(&self) -> SeriesCache
Returns a copy 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 SeriesCache
impl Debug for SeriesCache
source§impl PartialEq for SeriesCache
impl PartialEq for SeriesCache
source§fn eq(&self, other: &SeriesCache) -> bool
fn eq(&self, other: &SeriesCache) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SeriesCache
Auto Trait Implementations§
impl RefUnwindSafe for SeriesCache
impl Send for SeriesCache
impl Sync for SeriesCache
impl Unpin for SeriesCache
impl UnwindSafe for SeriesCache
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> 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