Struct adder_codec_core::codec::empty::stream::EmptyOutput
source · pub struct EmptyOutput<W: Write> { /* private fields */ }
Expand description
Filler for when generated ADΔER events need not be captured
Implementations§
source§impl<W: Write> EmptyOutput<W>
impl<W: Write> EmptyOutput<W>
sourcepub fn new(meta: CodecMetadata, _writer: W) -> Self
pub fn new(meta: CodecMetadata, _writer: W) -> Self
Create a new empty output stream.
Trait Implementations§
source§impl<W: Write> WriteCompression<W> for EmptyOutput<Sink>
impl<W: Write> WriteCompression<W> for EmptyOutput<Sink>
source§fn meta(&self) -> &CodecMetadata
fn meta(&self) -> &CodecMetadata
Returns a reference to the metadata
source§fn meta_mut(&mut self) -> &mut CodecMetadata
fn meta_mut(&mut self) -> &mut CodecMetadata
Returns a mutable reference to the metadata
source§fn write_bytes(&mut self, _bytes: &[u8]) -> Result<(), Error>
fn write_bytes(&mut self, _bytes: &[u8]) -> Result<(), Error>
Write the given bytes to the stream
source§fn byte_align(&mut self) -> Result<()>
fn byte_align(&mut self) -> Result<()>
Align the bitstream to the next byte boundary
source§fn into_writer(&mut self) -> Option<W>
fn into_writer(&mut self) -> Option<W>
Consumes the compression stream and returns the underlying writer.
source§fn flush_writer(&mut self) -> Result<()>
fn flush_writer(&mut self) -> Result<()>
Flush the
BitWriter
. Does not flush the internal BufWriter
.source§fn ingest_event(&mut self, _event: &Event) -> Result<(), CodecError>
fn ingest_event(&mut self, _event: &Event) -> Result<(), CodecError>
Take in an event and process it. May or may not write to the output, depending on the state
of the stream (Is it ready to write events? Is it accumulating/reorganizing events? etc.)