pub struct Recorder { /* private fields */ }Expand description
Records chosen channels, one row per sample.
- With an interval, a row at every multiple of
interval_safter launch that falls within the flight, and a row at every event (unless the last row already has that time). - Without one, a row at the flight’s first step’s start and at every step’s end; events end steps, so they are among the rows.
A recorder keeps one flight: Recorder::clear it before recording another. It serializes its
settings and rows for inspection; it is built with Recorder::new, not deserialized.
Implementations§
Source§impl Recorder
impl Recorder
Sourcepub fn new(
channels: Vec<Channel>,
interval_s: Option<f64>,
) -> Result<Self, SimError>
pub fn new( channels: Vec<Channel>, interval_s: Option<f64>, ) -> Result<Self, SimError>
A recorder of channels, sampling every interval_s seconds (None: every step’s end).
§Errors
SimError::Domain for an interval that isn’t finite and positive;
SimError::Unsupported for a channel listed twice, which would give two columns one name.
Trait Implementations§
impl StructuralPartialEq for Recorder
Auto Trait Implementations§
impl Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
impl UnwindSafe for Recorder
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