pub struct SamplesBatchFrame {
pub series_id: SeriesId,
pub lane: ValueLane,
pub ts_codec: TimestampCodecId,
pub value_codec: ValueCodecId,
pub point_count: u16,
pub base_ts: i64,
pub ts_payload: Vec<u8>,
pub value_payload: Vec<u8>,
}Fields§
§series_id: SeriesId§lane: ValueLane§ts_codec: TimestampCodecId§value_codec: ValueCodecId§point_count: u16§base_ts: i64§ts_payload: Vec<u8>§value_payload: Vec<u8>Implementations§
Source§impl SamplesBatchFrame
impl SamplesBatchFrame
pub fn from_points( series_id: SeriesId, lane: ValueLane, points: &[ChunkPoint], ) -> Result<Self>
pub fn from_timestamp_value_refs( series_id: SeriesId, lane: ValueLane, points: &[(i64, &Value)], ) -> Result<Self>
pub fn decode_points(&self) -> Result<Vec<ChunkPoint>>
Trait Implementations§
Source§impl Clone for SamplesBatchFrame
impl Clone for SamplesBatchFrame
Auto Trait Implementations§
impl Forget for SamplesBatchFrame
impl Freeze for SamplesBatchFrame
impl Move for SamplesBatchFrame
impl RefUnwindSafe for SamplesBatchFrame
impl Send for SamplesBatchFrame
impl Sync for SamplesBatchFrame
impl Unpin for SamplesBatchFrame
impl UnsafeUnpin for SamplesBatchFrame
impl UnwindSafe for SamplesBatchFrame
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