Struct adder_codec_core::codec::empty::stream::EmptyOutput
source · pub struct EmptyOutput { /* private fields */ }Expand description
Filler for when generated ADΔER events need not be captured
Trait Implementations§
source§impl<W: Write> WriteCompression<W> for EmptyOutput
impl<W: Write> WriteCompression<W> for EmptyOutput
source§fn new(meta: CodecMetadata, _writer: W) -> Self
fn new(meta: CodecMetadata, _writer: W) -> Self
A struct implementing
WriteCompression should take ownership of the writer.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 byte_align(&mut self) -> Result<()>
fn byte_align(&mut self) -> Result<()>
Align the bitstream to the next byte boundary
source§fn into_writer(self: Box<Self>) -> Option<W>
fn into_writer(self: Box<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.)