pub fn flush<P: AsRef<Path>>(&self, output: P) -> Result<()> {
        let mut f = File::create(output)?;
        serde_json::to_writer_pretty(&mut f, self)?;
        f.flush()?;
        Ok(())
    }
/// flush serializes the entire Recording, and writes it out to the given
/// file on disk (e.g. so it can be loaded and replayed later).
flush serializes the entire Recording, and writes it out to the given
file on disk .
flush serializes the entire Recording and writes it out to the given file on disk .
pub fn flush<P: AsRef<Path>>(&self, output: P) -> Result<()> {
        let mut f = File::create(output)?;
        serde_json::to_writer_pretty(&mut f, self)?;
        f.flush()?;
        Ok(())
    }
pub fn flush < P : AsRef < Path > > ( & self , output : P ) -> Result < ( ) > { let mut f = File :: create ( output ) ? ; serde_json :: to_writer_pretty ( & mut f , self ) ? ; f . flush ( ) ? ; Ok ( ( ) ) }
flush serializes the entire Recording, and writes it out to the given
file on disk (e.g.
flush serializes the entire Recording and writes it out to the given file on disk ( e . g .
&self
output
P
&self
output
P