Trait vector::sinks::util::encoding::Encoder

source ·
pub trait Encoder<T> {
    // Required method
    fn encode_input(
        &self,
        input: T,
        writer: &mut dyn Write,
    ) -> Result<(usize, GroupedCountByteSize)>;
}

Required Methods§

source

fn encode_input( &self, input: T, writer: &mut dyn Write, ) -> Result<(usize, GroupedCountByteSize)>

Encodes the input into the provided writer.

§Errors

If an I/O error is encountered while encoding the input, an error variant will be returned.

Implementations on Foreign Types§

source§

impl Encoder<Event> for (Transformer, Encoder<()>)

source§

fn encode_input( &self, event: Event, writer: &mut dyn Write, ) -> Result<(usize, GroupedCountByteSize)>

source§

impl Encoder<Vec<Event>> for (Transformer, Encoder<Framer>)

source§

fn encode_input( &self, events: Vec<Event>, writer: &mut dyn Write, ) -> Result<(usize, GroupedCountByteSize)>

Implementors§