pub fn from_writer(writer: W, config: EventWriterConfig) -> Result<Self> {
        let EventWriterConfig { auto_flush } = config;
        Ok(Self {
            auto_flush,
            events_writer: RecordAsyncWriter::from_writer(writer)?,
        })
    }
/// Build from a writer with [AsyncWrite] trait.
Build from a writer with [AsyncWrite] trait.
Build from a writer with [ AsyncWrite ] trait .
pub fn from_writer(writer: W, config: EventWriterConfig) -> Result<Self> {
        let EventWriterConfig { auto_flush } = config;
        Ok(Self {
            auto_flush,
            events_writer: RecordAsyncWriter::from_writer(writer)?,
        })
    }
pub fn from_writer ( writer : W , config : EventWriterConfig ) -> Result < Self > { let EventWriterConfig { auto_flush } = config ; Ok ( Self { auto_flush , events_writer : RecordAsyncWriter :: from_writer ( writer ) ? , } ) }
Build from a writer with [AsyncWrite] trait.
Build from a writer with [ AsyncWrite ] trait .
writer
W
config
EventWriterConfig
writer
W
config
EventWriterConfig