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 + Send + Sync + 'static> From<EmptyOutput<Sink>> for WriteCompressionEnum<W>
impl<W: Write + Send + Sync + 'static> From<EmptyOutput<Sink>> for WriteCompressionEnum<W>
Source§fn from(v: EmptyOutput<Sink>) -> WriteCompressionEnum<W>
fn from(v: EmptyOutput<Sink>) -> WriteCompressionEnum<W>
Converts to this type from the input type.
Source§impl<W: Write + Send + Sync + 'static> TryInto<EmptyOutput<Sink>> for WriteCompressionEnum<W>
impl<W: Write + Send + Sync + 'static> TryInto<EmptyOutput<Sink>> for WriteCompressionEnum<W>
Source§impl<W: Write + Send + Sync + 'static> WriteCompression<W> for EmptyOutput<Sink>
impl<W: Write + Send + Sync + 'static> 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(self) -> Option<W>
fn into_writer(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.)
Auto Trait Implementations§
impl<W> Freeze for EmptyOutput<W>
impl<W> RefUnwindSafe for EmptyOutput<W>where
W: RefUnwindSafe,
impl<W> Send for EmptyOutput<W>where
W: Send,
impl<W> Sync for EmptyOutput<W>where
W: Sync,
impl<W> Unpin for EmptyOutput<W>where
W: Unpin,
impl<W> UnwindSafe for EmptyOutput<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more