pub fn start_log(&mut self) -> Result<()> {
        if self.state != StreamerState::Initial {
            return Err(Error::Done);
        }

        self.writer.as_mut().write_all(b"")?;
        serde_json::to_writer(self.writer.as_mut(), &self.qlog)
            .map_err(|_| Error::Done)?;
        self.writer.as_mut().write_all(b"\n")?;

        self.state = StreamerState::Ready;

        Ok(())
    }
/// Starts qlog streaming serialization.
///
/// This writes out the JSON-SEQ-serialized form of all initial qlog
/// information. [Event]s are separately appended using [add_event()],
/// [add_event_with_instant()], [add_event_now()],
/// [add_event_data_with_instant()], or [add_event_data_now()].
///
/// [add_event()]: #method.add_event
/// [add_event_with_instant()]: #method.add_event_with_instant
/// [add_event_now()]: #method.add_event_now
/// [add_event_data_with_instant()]: #method.add_event_data_with_instant
/// [add_event_data_now()]: #method.add_event_data_now
Starts qlog streaming serialization.
This writes out the JSON-SEQ-serialized form of all initial qlog
information.


Starts qlog streaming serialization . This writes out the JSON - SEQ - serialized form of all initial qlog information .
pub fn start_log(&mut self) -> Result<()> {
        if self.state != StreamerState::Initial {
            return Err(Error::Done);
        }
        self.writer.as_mut().write_all(b"
")?;
        serde_json::to_writer(self.writer.as_mut(), &self.qlog)
            .map_err(|_| Error::Done)?;
        self.writer.as_mut().write_all(b"\n")?;
        self.state = StreamerState::Ready;
        Ok(())
    }
pub fn start_log ( & mut self ) -> Result < ( ) > { if self . state != StreamerState :: Initial { return Err ( Error :: Done ) ; } self . writer . as_mut ( ) . write_all ( b" " ) ? ; serde_json :: to_writer ( self . writer . as_mut ( ) , & self . qlog ) . map_err ( | _ | Error :: Done ) ? ; self . writer . as_mut ( ) . write_all ( b" \n " ) ? ; self . state = StreamerState :: Ready ; Ok ( ( ) ) }
Starts qlog streaming serialization.
Starts qlog streaming serialization .
&mut self
&mut self