pub struct JournalWriter { /* private fields */ }Implementations§
Source§impl JournalWriter
impl JournalWriter
pub fn new( schema: &Schema, seed: u64, sim_version: u32, checkpoint_every: u32, ) -> Self
pub fn ticks(&self) -> u64
pub fn push( &mut self, input: &[i64], digest: impl FnOnce() -> u64, ) -> Result<(), JournalError>
pub fn finish(self) -> Vec<u8> ⓘ
pub fn bytes(&self) -> Vec<u8> ⓘ
pub fn bytes_into(&self, out: &mut Vec<u8>)
pub fn snapshot(&self) -> Unsealed
pub fn snapshot_into(&self, out: Vec<u8>) -> Unsealed
Trait Implementations§
Source§impl Clone for JournalWriter
impl Clone for JournalWriter
Source§fn clone(&self) -> JournalWriter
fn clone(&self) -> JournalWriter
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 moreAuto Trait Implementations§
impl Freeze for JournalWriter
impl RefUnwindSafe for JournalWriter
impl Send for JournalWriter
impl Sync for JournalWriter
impl Unpin for JournalWriter
impl UnsafeUnpin for JournalWriter
impl UnwindSafe for JournalWriter
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