pub struct Recorder { /* private fields */ }Expand description
All metadata and byte buffers reserve their budgets at start. A rejected tick changes no buffers; reaching a limit leaves the complete prefix exportable.
Implementations§
Source§impl Recorder
impl Recorder
pub fn new( header: Header, limits: Limits, tick: u64, state: &[u8], hash: u64, ) -> Result<Recorder, ReplayError>
pub fn needs_checkpoint(&self, tick: u64) -> bool
pub fn tick_count(&self) -> usize
pub fn payload_bytes(&self) -> usize
pub fn push( &mut self, tick: u64, input: &[u8], events: &[EventInput<'_>], checkpoint: Option<&[u8]>, hash: u64, ) -> Result<(), ReplayError>
pub fn finish(self) -> Recording
Auto Trait Implementations§
impl Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin 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