pub struct RecorderBatch {
pub recorder_index: usize,
pub stage_index: usize,
pub first_sample: u32,
pub samples: Vec<(f64, f64)>,
}Expand description
One recorder’s new samples from a single advance() call. first_sample plus
samples.len() gives the sample range this batch covers, so a caller can retry a failed
persist without renumbering — the “each advance() batch deterministic and identifies its
first sample/count” contract from results-storage-indexeddb.md’s “Failure and cancellation
contract”. Scalar-only ((pseudo_time, value) pairs, one channel) until a vector recorder
needs more.
Fields§
§recorder_index: usize§stage_index: usize§first_sample: u32§samples: Vec<(f64, f64)>Trait Implementations§
Source§impl Clone for RecorderBatch
impl Clone for RecorderBatch
Source§fn clone(&self) -> RecorderBatch
fn clone(&self) -> RecorderBatch
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 moreSource§impl Debug for RecorderBatch
impl Debug for RecorderBatch
Source§impl PartialEq for RecorderBatch
impl PartialEq for RecorderBatch
Source§impl Serialize for RecorderBatch
impl Serialize for RecorderBatch
impl StructuralPartialEq for RecorderBatch
Source§impl Tsify for RecorderBatch
impl Tsify for RecorderBatch
const DECL: &'static str = "/**\n * One recorder\'s new samples from a single `advance()` call. `first_sample` plus\n * `samples.len()` gives the sample range this batch covers, so a caller can retry a failed\n * persist without renumbering \u{2014} the \"each `advance()` batch deterministic and identifies its\n * first sample/count\" contract from results-storage-indexeddb.md\'s \"Failure and cancellation\n * contract\". Scalar-only (`(pseudo_time, value)` pairs, one channel) until a vector recorder\n * needs more.\n */\nexport interface RecorderBatch {\n recorderIndex: number;\n stageIndex: number;\n firstSample: number;\n samples: [number, number][];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
Source§type JsType = JsType
type JsType = JsType
Must be a type imported through
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Auto Trait Implementations§
impl Freeze for RecorderBatch
impl RefUnwindSafe for RecorderBatch
impl Send for RecorderBatch
impl Sync for RecorderBatch
impl Unpin for RecorderBatch
impl UnsafeUnpin for RecorderBatch
impl UnwindSafe for RecorderBatch
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, U> Imply<T> for U
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.